chickadee » ck-macros » c-ninth

(c-first L) → itemsyntax
(c-second L) → itemsyntax
(c-third L) → itemsyntax
(c-fourth L) → itemsyntax
(c-fifth L) → itemsyntax
(c-sixth L) → itemsyntax
(c-seventh L) → itemsyntax
(c-eighth L) → itemsyntax
(c-ninth L) → itemsyntax
(c-tenth L) → itemsyntax

Yields the Nth item of the given list. Fails if the list is too short.

Analogous to first ... tenth from SRFI 1.

(ck () (c-quote (c-first  '(a b c d e f g h i j k))))  ; ==> 'a
(ck () (c-quote (c-second '(a b c d e f g h i j k))))  ; ==> 'b
(ck () (c-quote (c-third  '(a b c d e f g h i j k))))  ; ==> 'c
;;; ...
(ck () (c-quote (c-tenth  '(a b c d e f g h i j k))))  ; ==> 'j