Name:
tail
gives the tail of a list.
Usage:
tail
(
L
) :
list
->
list
Parameters:
L
is a list.
Description:
tail
(
L
) returns the list
L
without its first element.
If
L
is empty, the command will fail with an error.
tail
can also be used with end-elliptic lists. In this case, the result of
tail
is also an end-elliptic list.
Example 1:
> tail([|1,2,3|]);
[|2, 3|]
> tail([|1,2...|]);
[|2...|]
See also:
head
Go back to the list of commands