chickadee » srfi-160 » @vector-map

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

Iterate over the elements of @vec and apply f to each, returning a @vector of the results.

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.

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