chickadee » srfi-133 » vector-skip

vector-skip pred? vec1 vec2 ...procedure

Finds & returns the index of the first elements in vec1 vec2 ... that do not satisfy pred?. If all the values in the vectors satisfy pred? until the end of the shortest vector, this returns #f. This is equivalent to:

(vector-index (lambda (x1 x2 ...) (not (pred? x1 x1 ...)))
                    vec1 vec2 ...)


(vector-skip number? '#(1 2 a b 3 4 c d))
 ;=> 2