Last Command

Last( <List> )

Gives a new list that contains the last element of the initial list.

Last({1, 4, 3}) yields {3}.

To get the last element use Element({1, 4, 3}, 3).

Last( <List>, <Number of elements> )

Gives a new list that contains just the last n elements of the initial list.

Last({1, 4, 3}, 2) yields {4, 3}.

Last( <Text> )

Gives last character of the text.

Last("Hello") yields "o".

Last( <Text> , <Number of elements> )

Gives the last n characters of the text.

Last("Hello", 2) yields "lo".

See also First Command.