chickadee » srfi-133 » vector-partition

vector-partition pred? vecprocedure

A vector the same size as vec is newly allocated and filled with all the elements of vec that satisfy pred? in their original order followed by all the elements that do not satisfy pred, also in their original order.

Two values are returned, the newly allocated vector and the index of the leftmost element that does not satisfy pred.