- vector-for-each f vec_1 vec_2 ···procedure
Simple vector iterator: applies f to each index in the range [0, length), where length is the length of the smallest vector argument passed, and the respective list of parallel elements from vec_1 vec_2 ··· at that index. In contrast with vector-map, f is reliably applied to each subsequent elements, starting at index 0, in the vectors.
Example:
(vector-for-each (λ (i x) (display x) (newline)) '#("foo" "bar" "baz" "quux" "zot"))
Displays:
foo bar baz quux zot