Aurora Visio Studio TOP » Filter Reference » Array » 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 | Determines if the indices are counted from beginning or from end of the input 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.
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.