rest
Returns all but the first element in a container.
Syntax
-
rest(X)
-
X
is a linear container
-
Description
If X
is a linear container, then rest(X)
returns X
without its first element, if any. If X
is an empty container, then rest(X)
returns X
.
Examples
SequenceVector(10)
(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
'(first(ans), rest(ans))
1 (2, 3, 4, 5, 6, 7, 8, 9, 10)