Generic List Index Extraction

Description

This operator is a simplified extraction tool designed to extract a single element from a list based on a single index.

Overview

Extracts and outputs a single element from a list based on an index.

Scenarios

Use this operator to directly extract a specific element from a list when needed. For example, extracting the matching result with the highest score (usually at the 0th position in the list) or obtaining the last detected object (using index -1).

Inputs and Outputs

Inputs

Input List: A list.

Outputs

Extract Result: The single extracted element itself, with the same data type as the element in the original list.

Parameters

Index

Description

Specifies the index of the element to be extracted.

Tuning Instructions

Indices start from 0. Negative indices are supported; for example, -1 refers to the first element from the end of the list, and -2 refers to the second-to-last element.

Parameter Range

Values/Range: [-10000, 10000]

Default: 0