chickadee » channel » fold-channel

fold-channel channel proc seedprocedure

Returns a channel which receives all messages enqueued to channel applying proc to each message and the previous result of proc or seed for the first message (cf. fold in SRFI 1).

The returned channel is a siphoning channel (see siphon-channel).