Package: alexandria

Function last-elt

Lambda List

last-elt (sequence)

Details

Returns the last element of sequence. Signals an error of type type-error if sequence is not a proper sequence, or is an empty sequence.

Examples

 (last-elt "abc") => #c
 (last-elt '(a b c)) => C    
 

See also

2012-12-9