We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(define (vector-index-of v p?) (for/first ([x (in-vector v)] [i (in-naturals)] #:when (p? x)) i)) (vector-index-of #(1 3 5 8 9) even?) ; returns 3
There is index-of for lists but it does not work on a vector. I suggest adding one for vector!
index-of
The text was updated successfully, but these errors were encountered:
Seems more like index-where instead of index-of?
Sorry, something went wrong.
ohh yeah, index-where is what i meant.
index-where
Would a version that worked on arbitrary sequences instead of just vectors work for you?
No branches or pull requests
There is
index-of
for lists but it does not work on a vector. I suggest adding one for vector!The text was updated successfully, but these errors were encountered: