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

ArrayFirst

Alias:ArrayFirst, First, GetFirstItem

Output:T

Gets the first element of an array or entity stream

ParameterTypeRequiredPositionSummary
Array
In
array<T>✔1The 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