chickadee » srfi-214 » flexvector-append-map

flexvector-append-map f fv1 fv2 ...procedure

Constructs a new flexvector by appending the results of each call to f on the elements of the flexvectors fv1, fv2, etc., in order. Each call is of the form (f (flexvector-ref fv1 i) (flexvector-ref fv2 i) ...). Iteration stops when the end of the shortest flexvector argument is reached. The dynamic order of application of f is unspecified. f must return a flexvector. It is an error if f returns anything else. flexvector-append-map/index is a variant that passes the index i as the first argument to f for each element.