chickadee » srfi-160 » @vector-map!

@vector-map! f @vec @vec2 ...procedure

Iterate over the elements of @vec and apply f to each, returning an undefined value with the results placed back in @vec.

If more than one vector is passed, f gets one element from each vector as arguments. If the lengths of the vectors differ, iteration stops at the end of the shortest vector. Only @vec is modified even when multiple vectors are passed.

If @vector-map! returns more than once (i.e. because of a continuation captured by f), the values returned or stored by earlier returns may be mutated.

SRFI 133