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

FindAll


Module: FoundationLite

Finds all locations of a given value in the input array.

Name Type Description
Input value
inArray <T>Array Input array
Input value
inValue <T> Value to look for
Output value
outIndices IntegerArray Indices of the value occurrences in the array
Output value
outFound Bool

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

Examples

inArray = {2,4,3,2,5}
inValue = 2
outIndices = {0,3}

Remarks

Please note, that this filter can be concretized only with basic data types and structures of such types. Concretizing the filter with a non-comparable complex data type, such as Image or Region, will raise a Domain Error.

Using this filter to compare data of type Real (or structures with this type) may be tricky. It is caused by the fact that very small (unnoticeable) differences in values of such types may lead to unpredictable negative results in comparison of these values.

Errors

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

Non-comparable complex data type "TypeName" used in FindAll.

Complexity Level

This filter is available on Advanced Complexity Level.

Filter Group

This filter is member of Find filter group.

See Also

  • CountValueInArray – Calculates the number of occurrences of an object in an array.