-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
argmin/argmax not defined for Tuples and maybe others #621
Comments
Previously, only a limited set of input collections were supported with argmin/argmax. Add a fallback to indmin/indmax for remaining types, which allows them to work on Tuples. Fixes JuliaLang#621.
Potential remedy at #622. It's possible there may be types for which this should not be defined, but for |
This is only fixed for the |
Although
argmin
/argmax
on v0.7+ are defined on anything you can iterate (viafindmin
/findmax
), that's not the case within Compat at the moment. Currently, they are defined for:AbstractArray
AbstractVector
Associative
Therefore, you can't currently write compatible code if you want to use
Tuple
s:Works fine with
indmin
/indmax
, of course:The text was updated successfully, but these errors were encountered: