The 'last' function returns a list containing the last node or element of a list. If the last node is a sub-list, this is returned unaffected.
(last NIL) ; returns NIL (last 'a) ; error: bad argument type (last '(A)) ; returns (A) (last '(A B C D E)) ; returns (E) (last '( A (B C) (D E (F)))) ; returns ((D E (F))) (setq children '(junie vicki cindy chris)) (last children) ; returns (CHRIS)
See the
last
function in the