Skip to main content
Version: v0.19.0-alpha 🚧

ArrayTake

Alias:ArrayTake, Take

Output:Array of T

Take the first n elements of an array or entity stream

ParameterTypeRequiredPositionSummary
Array
From
array<T>✔1The array or entity stream to take elements from
Countint✔2The 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]