Skip to content
This repository has been archived by the owner on Jan 8, 2022. It is now read-only.

Rename Collection#sorted #32

Open
anandre opened this issue Jan 19, 2021 · 1 comment
Open

Rename Collection#sorted #32

anandre opened this issue Jan 19, 2021 · 1 comment

Comments

@anandre
Copy link
Contributor

anandre commented Jan 19, 2021

Collection#sorted should be renamed to some sort of verb; "sorted" is an adjective and doesn't fit in with the rest of the method names, which are mostly verbs (I recognize that some is a loose fit, but it's coming from Array so...). Opening this issue to generate some ideas.

@vaporoxx
Copy link
Contributor

Is this method actually needed? From what I can see, these two calls should be exactly identical:

collection.sorted(fn);
collection.clone().sort(fn);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants