last
 
 
 

Returns the last element in a list

(last lst)

Arguments

lst

A list.

Return Values

An atom or a list.

Examples

Command: (last '(a b c d e))

E

Command: (last '(a b c (d e)))

(D E)