- (c-last-pair L) → pairsyntax
Yields the last pair of the given list. Fails if the list is empty.
Analogous to last-pair from SRFI 1.
(ck () (c-quote (c-last-pair '(a b c)))) ; ==> '(c) (ck () (c-quote (c-last-pair '(a b . c)))) ; ==> '(b . c)
Yields the last pair of the given list. Fails if the list is empty.
Analogous to last-pair from SRFI 1.
(ck () (c-quote (c-last-pair '(a b c)))) ; ==> '(c) (ck () (c-quote (c-last-pair '(a b . c)))) ; ==> '(b . c)