append-map

Name

append-map -- Do the same thing as map, but collect results with append, not cons.

Synopsis

(append-map proc first . rest)

Description

Do the same thing as map, but collect results with append, not cons. In particular, PROC is applied in succession to each member of FIRST and the corresponding members of REST if any, and is expected to return a list. These lists are concatenated together with append. In effect, this is a version of map that allows the mapping function to return any number of elements to be inserted into the result list, including possibly none.

Implementation Notes

Module: (app scwm listops)

Defined in scheme/listops.scm at line 73 (CVS log)