chickadee » srfi-158 » sum-accumulator

sum-accumulatorprocedure

Returns an accumulator that, when invoked on a number, adds that number to a sum inside the accumulator in order of accumulation and returns an unspecified value. However, if an end-of-file object is passed, the accumulator returns the sum.