-
Notifications
You must be signed in to change notification settings - Fork 147
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
setindex! returns the wrong value #827
Comments
Is there an official API for the return value of On the other hand, Base.Array behaves as you say and seems to be consistent about it. So I'm very happy to change this, though also confused about whether there's a "correct" option. |
There was a similar discussion in JuliaLang/julia#31891 It looks like the decision was that |
(Though I think it would have been great if |
The convention is to return the modified object. Some more examples:
|
Ok, let's follow what |
The text was updated successfully, but these errors were encountered: