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

Rename find() to findall() #25545

Merged
merged 2 commits into from
Jan 16, 2018
Merged

Rename find() to findall() #25545

merged 2 commits into from
Jan 16, 2018

Conversation

nalimilan
Copy link
Member

findall is more explicit and fits well in the series of findfirst/findlast and findnext/findprev. This change got some support at #10593.

@nalimilan nalimilan added the search & find The find* family of functions label Jan 13, 2018
@ararslan ararslan added the deprecation This change introduces or involves a deprecation label Jan 14, 2018
@nalimilan nalimilan force-pushed the nl/findall branch 3 times, most recently from 42b7500 to 9d6465a Compare January 15, 2018 13:04
@JeffBezanson
Copy link
Member

Looks like there's a doc reference issue.

NEWS.md Outdated
In particular, this means that it returns `CartesianIndex` objects for matrices
and higher-dimensional arrays instead of linear indices as was previously the case.
Use `LinearIndices(a)[find(f, a)]` to compute linear indices.
Use `LinearIndices(a)[findall(f, a)]` to compute linear indice
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accidentally cut off this sentence?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, thanks, that's an editor bug, it's not the first time I get this...

findall is more explicit and fits well in the series of findfirst/findlast and findnext/findprev.
@nalimilan
Copy link
Member Author

Merge?

@StefanKarpinski StefanKarpinski merged commit d77048f into master Jan 16, 2018
@StefanKarpinski StefanKarpinski deleted the nl/findall branch January 16, 2018 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecation This change introduces or involves a deprecation search & find The find* family of functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants