chickadee » srfi-214 » flexvector-cumulate

flexvector-cumulate f knil fvprocedure

Returns a newly-allocated flexvector new with the same length as fv. Each element i of new is set to the result of (f (flexvector-ref new (- i 1)) (flexvector-ref fv i)), except that, for the first call on f, the first argument is knil. The new flexvector is returned.