Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

array

Built-in functions

len

Return the number of elements in an array.

count

Return the count of elements in an array or string.

Note: This symbol might be deprecated in the future.

first

Return the first element in an array or string.

last

Return everything but the first element in an array or string.

Return the first element in an array or string.

Note this function is supposed to be deprecated in the future.

tail

Return everything but the first element in an array or string.

rev

Return reversed version of this array.

sorted

Return a sorted version of this array

is_ascending

Check if all items are sorted in ascending order.

is_descending

Check if all items are sorted in descending order.

contains

Check if an array contains an element.