-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Allow map!(f, array)
#40632
Allow map!(f, array)
#40632
Conversation
xref #31677 |
Here's the rub:
*ignoring differences between map and broadcast, of course |
Sorry I missed the earlier discussion, somehow. Agree it's a bit awkward. Is the difference between |
Extending from @mbauman...unless we change
|
FWIW map and broadcast seem different enough that the parallel structure argument doesn't really seem like a problem to me.. |
I'm honestly not sure what I was trying to say there, hah. I think my point was:
I'm not so sure that's a problem anymore. But we would have to change the documentation. Currently:
|
We now have |
Triage discussed this (#31677 (comment)) |
As a (minor) breaking change, I think #52631 needs to be in at least public release before we can merge this? (which does mean we can merge this on Tuesday, just not today) |
IMO it would be possible to keep this even if we revert #52631, so no need to wait a release; but I'm not in a hurry here. |
That test checks 1-arg methds; this is a two-arg method. |
Co-authored-by: Michael Abbott <[email protected]>
Edit -- implements #31677, see discussion there.
I
didn't find an issue, butdid find some tests of non-AbstractArray cases where this is allowed:julia/test/dict.jl
Lines 1182 to 1183 in 3d08f82