Aurora Visio Studio TOP » Filter Reference » Array » Array Transforms » SlideArray
Module: | FoundationLite |
---|
Creates two copies of the input array - one with elements removed at the beginning, the other with elements removed at the end.
Applications
This filter is useful for computing something on all the pairs of two consecutive elements of an array, e.g. creating a list of segments from an ordered list of points.
Name | Type | Description | |
---|---|---|---|
inArray | <T>Array | Input array | |
inShift | Integer | Number of elements to be removed | |
outArray1 | <T>Array | Input array with inShift last elements removed | |
outArray2 | <T>Array | Input array with inShift first elements removed |
The type of this filter is defined using the type variable T which represents any valid type. Read more.
Examples
inArray = {1,2,3,4,5,6,7} inShift = 2 |
outArray1 = {1,2,3,4,5} outArray1 = {3,4,5,6,7} |
Complexity Level
This filter is available on Advanced Complexity Level.
See Also
- RotateArray – Cyclically shifts the elements of an array.