These functions are in the
(srfi srfi-171 meta) module and are only
usable when you want to write your own transducers.
Wraps a value in a
<reduced> container, signalling that the
reduction should stop.
Returns #t if value is a
Returns the value in reduced-container.
Wraps value in a
<reduced> container if it is not already reduced.
reducer in another reducer that encapsulates any returned
reduced value in another reduced container. This is useful in places
where you re-use a reducer with [collection]-reduce. If the reducer
returns a reduced value, [collection]-reduce unwraps it. Unless handled,
this leads to the reduction continuing.
The reducing function used internally by
is a reducer as returned by a transducer. identity is the
identity (sometimes called "seed") of the reduction. lst is a
list. If f returns a reduced value, the reduction stops
immediately and the unreduced value is returned.
The vector version of list-reduce.
The string version of list-reduce.
The bytevector-u8 version of list-reduce.
The port version of list-reducer. It reduces over port using reader until reader returns the EOF object.
The port version of list-reduce. It reduces over
gen until it
returns the EOF object