chickadee » ck-macros » c-last

(c-last L) → itemsyntax

Yields the last value of the given list. Fails if the list is empty or is not a proper list.

Analogous to last from SRFI 1.

(ck () (c-quote (c-last '(a b c))))    ; ==> 'c
(ck () (c-quote (c-last '(a b . c))))  ; ==> ERROR!