Status
Tech review

Style guide




Short description

Returns the first element () in the number/text list l, or  null if l is an empty list.

Output




Supported list types


Number list

The function returns the first element () in the number list l, or  null if l is an empty list.


first(number list l) #Output: Number



Parser expressionDescription


first([3, 2, 1, 0])


The function returns the 3, which is the first element of the number list l.



Parameters used in this function

ParameterInput (data type)Description
<parameter>

Parameter description.



The function returns a



Text list

Returns the first element () in the text list l, or null if l is an empty list.


first(string list l) #Output: Text



Parser expressionDescription


first(["blue", "red", "green"])


The function returns the "blue", which is the first element of the text list l.



Parameters used in this function

ParameterInput (data type)Description
<parameter>

Parameter description.



The function returns a