Aurora Visio Studio TOP » Filter Reference » Array » Array Basics » GetMultipleArrayElements

GetMultipleArrayElements


Module: FoundationLite

Extracts multiple elements from an array.

Name Type Description
Input value
inArray <T>Array Input array
Input value
inIndices IntegerArray Indices within the array
Input value
inInverse Bool Determines if the indices are counted from beginning or from end of the input array
Output value
outValues <T>Array Output values

The type of this filter is defined using the type variable T which represents any valid type. Read more.

Hints

  • When you need only one array element, use GetArrayElement instead.
  • When you need a continuous subsequence of array elements, use CropArray.

Examples

inArray = {100, 430, 35, 250, 55, 130}
inIndices = {2, 4, 3, 3}
outValues = {35, 55, 250, 250}

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Index out of range in GetMultipleArrayElements.

Complexity Level

This filter is available on Advanced Complexity Level.

See Also

  • GetArrayElement – Extracts a single element from an array at the specified index.
  • CropArray – Selects a continuous subsequence of array elements.