Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Array Basics » GetMultipleArrayElements

GetMultipleArrayElements


Extracts multiple elements from an array.

Name Type Description
inArray <T>Array Input array
inIndices IntegerArray Indices within the array
inInverse Bool Reversed order in the array
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 Basic Complexity Level.

See Also

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