chickadee » srfi-113 » bag-fold

bag-fold proc nil bagprocedure

Invokes proc on each member of bag in arbitrary order, passing the result of the previous invocation as a second argument. For the first invocation, nil is used as the second argument. Returns the result of the last invocation, or nil if there was no invocation.