tail
function, since version 1.0.0
categories: arrays
tail(arr, [n=1])
returns input array without the first n
elements. Parameter n
is optional, with default value 1
parameters
- arr: array[any] - array of any items
- n: number - number of head items to remove [optional parameter]
return type
any
example
tail(split('a:b:c:d:e', ':'))
tail(split('a:b:c:d:e', ':'), 2)
join(tail(split('a:b:c:d:e', ':'), 2), ':')
returns
[b, c, d, e]
[c, d, e]
c:d:e