🟧 Generic List Index Extract

Function Description

This operator is a simplified extraction tool specifically for extracting a single element from a list by single index.

Usage Scenarios

When clearly needing a specific element from a list, this operator can directly extract it. For example, extract the highest scoring matching result (usually at position 0), or get the last detected target (using index -1).

Input Output

Input

Input List: A list.

Output

Extract Results: The extracted single element itself, whose data type is consistent with the element type in the original list.

Parameter Description

Key difference from "Generic List Extract": This operator outputs a single element, while "Generic List Extract" outputs a list even when extracting only one element. Please choose the appropriate operator based on actual needs. If the specified index exceeds the list range, the operator will output None.

Index

Parameter Description

Specify the index of the element to extract.

Parameter Adjustment

Index starts from 0. Supports negative indices, for example, -1 means extract the first element from the end of the list, -2 means second from the end.

Parameter Range

[-10000,10000], Default value: 0