last-pair

Return the final pair or last element of a non-empty list.  Fails if the list is improper.

last-pair(1, 2, 3, 4, 5)    ⇒ #(5)
last-pair(1, 2, 3, #(4, 5)) ⇒ #(#(4, 5))
last-pair(1, 2, 3, 4 . 5) ⇒ fails

Exported from

Arguments

argAn instance of <pair>.

Values

valAn instance of <pair>.
Sequence-Utilities, written by Matthias Hölzl, provides common or oft-used operations performed on <sequence>s.
The class of lists that can have new values assigned to their heads and tails.