Description
If possible, I think we should make the region
argument in the dimension reduction methods of any
and all
a keyword argument. map
has an incredibly handy method for multiple iterators, e.g. map(<, a, b)
. Currently any(<, a, b)
will use the method any(f, itr, region)
, but it would be great to be able to reclaim any(<, a, b)
to do what it looks like it should do. That would require making region
a keyword argument in 0.7 with a deprecation, and introducing the new method in 1.0.
The downside to this is that we have to come up with a default value for region
in order to use it as a keyword argument, and when region
isn't specified then we want it to dispatch to the simpler, short-circuiting method not based on mapreducedim
.
A similar argument could be made for other functions with We're doin' 'em all.mapreducedim
-based methods, such as sum(f, A, region)
, but I mostly care about any
/all
for now.