-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
uniquify the docstring of unique(itr) #22368
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
Conversation
base/multidimensional.jl
Outdated
@@ -1298,9 +1298,16 @@ hash(x::Prehashed) = x.hash | |||
|
|||
Returns an array containing only the unique elements of the iterable `itr`, in | |||
the order that the first of each set of equivalent elements originally appears. | |||
The unicity is determined by [`isequal`](@ref). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think "unicity" is a fairly uncommon word. (Indeed, Firefox spellcheck is marking it as incorrect, though a Google search shows it exists.) I think "uniqueness" might be clearer here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For reference to those interested: https://english.stackexchange.com/questions/225094/uniqueness-vs-unicity
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I gotta say, I do love the suggestions in one of the answers regarding rhyming. We really need more rhyming docstrings.
See #20800, which I should have merged a few weeks ago. |
@nalimilan oups I hadn't search for open PR on that, sorry. I will check if there is something left of this one now that you merged. |
21ad159
to
e292400
Compare
So I still think the docstring were redundant, I updated accordingly. I also updated the example |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, my PR didn't get rid of repetitions.
The docs for
unique(itr)
seems to have been redundant, cf. #15741 (comment).