Name

last

Usage

builtin-function

Syntax

(last seq)
(last count seq)

Description

Returns the last 1 or count cons cells of a list.

user 1 > (last '(1 2 3))
it: (3)
user 2 > (last null)
it: null
user 3 > (last 2 '(1 2 3))
it: (2 3)
user 4 > (last 5 '(1 2 3))
it: (1 2 3)