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

make firstindex(a,d) and lastindex(a,d) default to calling axes(a,d) #38742

Merged
merged 5 commits into from
Dec 8, 2020

Conversation

stevengj
Copy link
Member

@stevengj stevengj commented Dec 7, 2020

As discussed in #35779, this improves backwards compatibility for the a[begin] change.

In fact, this was already the default behavior, but previously only for AbstractArray — with this change, it is the default for multidimensional indexing of any collection.

cc @bkamins, @nalimilan

@stevengj stevengj added the domain:arrays [a, r, r, a, y, s] label Dec 7, 2020
@stevengj stevengj added this to the 1.6 features milestone Dec 7, 2020
NEWS.md Outdated Show resolved Hide resolved
Copy link
Member

@bkamins bkamins left a comment

Choose a reason for hiding this comment

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

Looks good. Thank you. I have left minor code editing comments.

stevengj and others added 2 commits December 7, 2020 09:12
Co-authored-by: Bogumił Kamiński <[email protected]>
Co-authored-by: Bogumił Kamiński <[email protected]>
@JeffBezanson JeffBezanson merged commit 8a5ac94 into master Dec 8, 2020
@JeffBezanson JeffBezanson deleted the sgj/firstindex_default branch December 8, 2020 03:24
@nalimilan
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:arrays [a, r, r, a, y, s]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants