Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Array Transforms » CropArray


Module: FoundationLite

Selects a continuous subsequence of array elements.

Name Type Range Description
inArray <T>Array Input array
inStart Integer 0 -
inLength Integer* 0 -
inInverse Bool Reversed order in the array
outCroppedArray <T>Array Cropped array

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


inArray = {2,4,3,2,5}
inStart = 1
inLength = 3
outCroppedArray = {4,3,2}


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.