Aurora Visio Studio TOP » Filter Reference » Array » Array Transforms » CropArray

CropArray


Module: FoundationLite

Selects a continuous subsequence of array elements.

Name Type Range Description
Input value
inArray <T>Array Input array
Input value
inStart Integer 0 -
Input value
inLength Integer* 0 -
Input value
inInverse Bool Determines if the indices are counted from beginning or from end of the input array
Output value
outCroppedArray <T>Array Cropped array

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}
inStart = 1
inLength = 3
outCroppedArray = {4,3,2}

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 inLength negative in CropArray
DomainError inStart negative in CropArray

Complexity Level

This filter is available on Basic Complexity Level.

See Also

  • SplitArray – Divides an array into two parts at the given index.