ArrayTake
Alias:ArrayTake, Take
Output:Array of T
Take the first n elements of an array or entity stream
| Parameter | Type | Required | Position | Summary |
|---|---|---|---|---|
| Array From | array<T> | ✔ | 1 | The array or entity stream to take elements from |
| Count | int | ✔ | 2 | The number of elements/entities to take |
Examples​
Example 1​
SCL​
ArrayTake [1, 2, 3] 2
Expected Output​
[1, 2]
Example 2​
SCL​
Take From: [1, 2, 3, 4, 5] Count: 3
Expected Output​
[1, 2, 3]