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

Add .last() and .last_mut() methods #1013

Merged
merged 2 commits into from Jun 5, 2021

Conversation

jturner314
Copy link
Member

This PR adds .last() and .last_mut() methods. These are most useful with 1-D arrays, but we might as well define them for n-D arrays. This PR also adds examples to the docs for the .first() and .first_mut() methods.

@bluss bluss added this to the 0.15.3 milestone May 27, 2021
@bluss bluss merged commit 6faac1e into rust-ndarray:master Jun 5, 2021
@bluss
Copy link
Member

bluss commented Jun 5, 2021

Neat

@jturner314 jturner314 deleted the array-last-method branch June 5, 2021 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants