Skip to content
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

immutable set that preserves order #8234

Closed
scabug opened this issue Feb 4, 2014 · 5 comments
Closed

immutable set that preserves order #8234

scabug opened this issue Feb 4, 2014 · 5 comments

Comments

@scabug
Copy link

scabug commented Feb 4, 2014

see #8184

Would be nice to have an efficient collection.immutable.LinkedSet analogous to mutable.LinkedHashSet in that it preserves ordering

@scabug
Copy link
Author

scabug commented Feb 4, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8234?orig=1
Reporter: @adriaanm
See #8184

@scabug
Copy link
Author

scabug commented Jan 30, 2015

@Ichoran said:
How nice would it be? The naive implementations have horrible runtime performance, and the ones with less horrible performance are still not great and are not terribly simple. (You basically need to create a set with two underlying sets, one HashSet and one SortedSet, where the latter keeps track of insertion order.)

@SethTisue
Copy link
Member

@Ichoran did this happen in strawman?

@SethTisue SethTisue added this to the Backlog milestone Feb 17, 2018
@jvican
Copy link
Member

jvican commented Feb 21, 2018

(I think having this would be really nice.)

@SethTisue
Copy link
Member

SethTisue commented Apr 8, 2021

2.13 adds SeqMap (and implementations such as VectorMap)

no SeqSet was added at the same time, for no obvious reason; ticket is scala/scala-library-next#22

I'm going to close this regardless, since the scala-library-next ticket exists (and since scala/bug is generally for actual bugs)

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

No branches or pull requests

3 participants