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

document getindex() with range of length 1. #41140

Merged
merged 1 commit into from
Jun 9, 2021

Conversation

jonasjonker
Copy link
Contributor

Added an example with a range of length=1 instead of an Integer (A[:, 3:3]) which returns a Matrix instead of a vector. Somebody made me aware of this behavior on stackoverflow, but I couldn't find an example of it in the documentation. I thought it might be an improvement.

@mbauman mbauman added domain:arrays [a, r, r, a, y, s] domain:docs This change adds or pertains to documentation labels Jun 8, 2021
@fredrikekre fredrikekre added the status:merge me PR is reviewed. Merge when all tests are passing label Jun 8, 2021
@DilumAluthge DilumAluthge reopened this Jun 9, 2021
Added an example with A[:, 3:3] which returns a Matrix instead of a
Vector. Somebody made me aware of this behavior on
[stackoverflow](https://stackoverflow.com/questions/67889148/let-indexing-return-a-matrix-instead-of-a-vector-in-julia).
but I couldn't find an example of it in the documentation.
@mbauman mbauman merged commit de1444c into JuliaLang:master Jun 9, 2021
@mbauman mbauman removed the status:merge me PR is reviewed. Merge when all tests are passing label Jun 9, 2021
johanmon pushed a commit to johanmon/julia that referenced this pull request Jul 5, 2021
Added an example with A[:, 3:3] which returns a Matrix instead of a
Vector. Somebody made me aware of this behavior on
[stackoverflow](https://stackoverflow.com/questions/67889148/let-indexing-return-a-matrix-instead-of-a-vector-in-julia).
but I couldn't find an example of it in the documentation.
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] domain:docs This change adds or pertains to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants