-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Description
I have been working through some of the JuliaCollection packages working to make sure that map!(f,values(dict)) has non-naive implementations. As the semantic was introduced in #31223.
Which got me thinking that potentially map! should be implemented on more of the non AbstractDict collection\container types as it could be useful.
For those types that just store values without keys, it would make sense that map!(f, collection) is the syntax. But apparently, that exact syntax was depreciated in #19721. There is an open PR to add it back in for AbstractArray, #3007.
There are some related open issues like:
#12277
It seems to me that map!(f, A) should clearly be equivalent to map!(f,A,A) so can the ecosystem use that?
Finally, if ecosystem packages implement map!(f,A) for in place value modification, is there a way to make sure that when map!(f,A,A) is used it can get a fall back to map!(f,A)?