-
-
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 unique() to Base? #1645
Comments
Yes, we should have |
What about giving results in sorted order? |
That would be even better. |
In that case the one liner will not be sufficient :) |
|
Sorted only works if the type is ordered, though; |
That's a really good point. If someone wants it sorted too, they can wrap it in |
@pao's right: ditch the sorting. |
Thanks! |
I'd really like to have the
unique()
function be added to Base. Here's @JeffBezanson's one-liner for it:The text was updated successfully, but these errors were encountered: