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

Change indexin() to return first rather than last matching index #25998

Merged
merged 1 commit into from
Feb 14, 2018

Conversation

nalimilan
Copy link
Member

That's more natural, and consistent with MATLAB's ismember and R's match.
See discussion at #25662 (comment).

If desired, breakage could be avoided by adding an optional argument to choose between the first and the last one. We would print a deprecation by default unless the argument is passed explicitly.

That's more natural, and consistent with MATLAB's ismember() and R's match().
@nalimilan nalimilan added breaking This change will break code collections Data structures holding multiple items, e.g. sets labels Feb 11, 2018
@nalimilan nalimilan merged commit 9a239ec into master Feb 14, 2018
@nalimilan nalimilan deleted the nl/indexin branch February 14, 2018 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking This change will break code collections Data structures holding multiple items, e.g. sets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants