chickadee » ck-macros » c-append-map1

(c-append-map1 '(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.

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

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