accumulation [Pattern]

Enumerates items together with the set of items that have been enumerated so far. The process starts over when all the items have been collected.

Example:

? (setf x (notes c4 d e f g in accumulation))
#<ACCUMULATING-NOTE-STREAM 131656351>

? (read-items x)
(C4 C4 D4 C4 D4 E4 C4 D4 E4 F4 C4 D4 E4 F4 G4)

See Also:

Item Streams


Last Modified: 5-Mar-1998