chickadee » srfi-214 » flexvector-for-each

flexvector-for-each f fv1 fv2 ...procedure

Simple flexvector iterator: applies f to the corresponding list of parallel elements from fv1 fv2 ... in the range [0, length), where length is the length of the smallest flexvector argument passed. In contrast with flexvector-map, f is reliably applied in left-to-right order, starting at index 0, in the flexvectors. flexvector-for-each/index is a variant that passes the index as the first argument to f for each element.