ArrayFirst
Alias:ArrayFirst
, First
, GetFirstItem
Output:T
Gets the first element of an array or entity stream
Parameter | Type | Required | Position | Summary |
---|---|---|---|---|
Array In | array<T> | ✔ | 1 | The array to get the first element of |
Examples​
Example 1​
SCL​
ArrayFirst [1,2,3]
Expected Output​
1
Example 2​
SCL​
ArrayFirst ['a', 'b', 'c']
Expected Output​
a
Example 3​
SCL​
ArrayFirst [('a': 1), ('a': 2), ('a': 3)]
Expected Output​
('a': 1)
Example 4​
SCL​
GetFirstItem In: [1,2,3]
Expected Output​
1