-
-
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!(f, itr) #28415
Comments
Can I work on this issue? |
Yes, anyone can work on any issue. |
@bvsravikiran If you are not working on it. I would like to pick it up |
Sure. Go ahead.
…On Fri, Aug 17, 2018 at 01:41 des2 ***@***.***> wrote:
@bvsravikiran <https://github.com/bvsravikiran> If you are not working on
it. I would like to pick it up
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#28415 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGtPGga8QfXlZkG2aoVZURx7B-BW1MIdks5uRmWHgaJpZM4VtIdO>
.
|
Yikes. I was unaware that someone was working on this. I had already done this because I needed it. So, I created a pull request for it #28737 |
If it is not the best implementation, please feel free to discard the pull request. (But, I would appreciate a commentary on the things that need improvement.) |
If I am understanding it correctly, the return values of unique!(f, itr) does not really care about original order of occurrence.As it is also clear from the documentation of
Ex- The unique!(f, itr) can generate -1,-3,-5 (if sort!(A) and _groupedunique!() like function applied) as well as 1,3,5 if order of occurence is necessary. |
I think we generally want to leave the elements in their original order. There's no reason not to do so. |
We have a
unique(f, itr)
:but no corresponding in-place version, would be nice to have. See #20619
The text was updated successfully, but these errors were encountered: