Generic List Extraction

Function: Generic list extraction, which can extract partial values from a list based on a specified index, index range, or index list.

Input Parameters:

Name Type Valid Range Default Value Meaning

Input List

AnyType

None

None

Input list; can be a list composed of different data types.

Output Parameters:

Name Type Valid Range Default Value Meaning

Extraction Result

AnyType

None

None

Result extracted based on parameters.

Parameter Settings:

Name Type Valid Range Default Value Meaning

Extraction Method

String

['ExtractSingle', 'ExtractInRange', 'ExtractByList']

ExtractSingle

Determines the extraction method. When ExtractSingle is selected, only the value corresponding to a single index is extracted. When ExtractInRange is selected, the maximum and minimum indexes can be set to extract values within the index range. When ExtractByList is selected, the values of the corresponding indexes in the list are extracted.

Index

Integer

[-10000, 10000]

0

Given an index, extract the value corresponding to the index in the list. When it is a positive number, the sequence number starts from 0; when it is a negative number, the sequence number starts from -1, indicating the count starts from the end of the list.

Min Index

Integer

[0, 10000]

0

Minimum value of the index range, valid only when Extraction Method is ExtractInRange.

Max Index

Integer

[0, 10000]

0

Maximum value of the index range, valid only when Extraction Method is ExtractInRange.

Index List

List

None

[]

Extracts values from the list where each value in the Index List serves as an index. If Reverse Extraction is not selected, the order of the Index List here will determine the order of the results.

Reverse Extraction

Bool

None

False

Reverse index, keeps elements other than those specified by the index number(s). (Note: Original text mentioned point clouds, adapted for generic list)