-
-
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
add sort(f <: Base.Callable, x)
method
#38443
Comments
The counterpoint to this is that both |
I would say that with a docstring + the existing convention of |
I think a problem with this is that functions can have methods for both single and two arguments. |
Is the proposal to make this equal to Edit: The issue I was thinking of is #27613. The new method there |
👎 to that. That type of function reflection should not be used for a public API imo. Just trying to document this becomes kind of awkward:
|
I'm proposing to make it equal to |
Turns out I'm wrong about how
|
I think in general the Anyway I'm against adding this since it would be a spurious variation on existing functionality. This discussion itself shows that |
I just did a quick search on github of for other issues asking for this feature. I didn't find any, so I'm filing this issue.
Given we have
mean(f, x)
,count(f, x)
etc. It would be nice ifsort(f, x)
also worked.Currently I can use
sort(x, by = f)
. But for convenience and consistency this method would be nice.The text was updated successfully, but these errors were encountered: