Skip to content
New issue

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

A::find() should exit as early as it can #21

Open
meszaros-lajos-gyorgy opened this issue Jul 21, 2021 · 0 comments
Open

A::find() should exit as early as it can #21

meszaros-lajos-gyorgy opened this issue Jul 21, 2021 · 0 comments

Comments

@meszaros-lajos-gyorgy
Copy link
Owner

Currently it goes throgh every element with A::filter(), then takes the first of that list, which is not optimal. The following functions depend on A::find() and expecting early exiting once data was found:

A::findLast
A::findLastIndex
A::any
A::none
A::all

It should be implemented similarly to how A::findIndex() is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant