chickadee » ck-macros » c-append-map

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

Yields a list by calling the quoted operation on each item in the list, then appending the results. The operation must be a CK-macro that yields a list. The operation may have leading arguments.

Analogous to append-map from SFRI-1, but only accepts one list. This was named c-concatMap in the original implementation.

(ck () (c-quote (c-append-map '(c-list 'a 'b) '(1 2))))
;; ==> '(a b 1 a b 2)