chickadee » ck-macros » c-map

(c-map '(OP ...) L) → listsyntax

Yields a list by calling the quoted operation on each item in the given list. The operation may have leading arguments. Analogous to map, but only accepts one list.

(ck () (c-quote (c-map '(c-cons 'a) '(1 2))))
;; ==> '((a . 1) (a . 2))