chickadee » srfi-116 » iappend-map

iappend-map f ilist1 ilist2 ...procedure

Equivalent to (iapply iappend (imap f ilist1 ilist2 ...)) and (iapply iappend (imap f ilist1 ilist2 ...)). Map f over the elements of the ilists, just as in the imap function. However, the results of the applications are appended together (using iappend) to make the final result.

The dynamic order in which the various applications of f are made is not specified.

Example:

(iappend-map (lambda (x) (ilist x (- x))) (iq 1 3 8)) ;=> (1 -1 3 -3 8 -8)