All But First Item in List | ARRAY_TAIL

Syntax

ARRAY_TAIL( [value] )

Parameters

value
The ARRAY for which the first item is being removed.

Return Value

The ARRAY with the item at index 0 removed.

Description

Removes the first item from an ARRAY. Returns a new ARRAY with the first item removed and does not modify the original ARRAY. If VALUE is not an ARRAY, it will be coerced to one with the ARRAY method.

Examples

ARRAY_TAIL([1, 2, 3]) # returns [2, 3]
ARRAY_TAIL([]) # returns []
ARRAY_TAIL(null) # returns []