chickadee » ck-macros » c-cons

(c-cons X Y) → pairsyntax

Yields a pair with the two given arguments. Analogous to cons.

(ck () (c-quote (c-cons '"a" '1)))
;; Expands to '("a" . 1).

(ck () (c-quote (c-cons '+ '(1 2))))
;; Expands to '(+ 1 2).

(ck () (c-quote (c-cons '+ (c-cons '1 (c-cons '2 '())))))
;; Also expands to '(+ 1 2).