What do you think about having a by=
argument for maximum
, minimum
, findmax
, findmin
? The difference from the f
argument is that the return value of the f
form is in the codomain of f
while for by
it would be in the domain.
For instance
julia> maximum(abs, [-10, -20])
20
julia> maximum([-10, -20]; by=abs)
-20