Next: , Previous: Enumerated/finite types and sets, Up: Libraries


6.3 Macros for writing loops

(This section was derived from work copyrighted (C) 1993-2005 by Richard Kelsey, Jonathan Rees, and Mike Sperber.)

Iterate & reduce are extensions of named-let for writing loops that walk down one or more sequences, such as the elements of a list or vector, the characters read from a port, or an arithmetic series. Additional sequences can be defined by the user. Iterate & reduce are exported by the structure reduce.