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

distinctBy does not work infinite scala.Stream #5

Open
xuwei-k opened this issue Apr 13, 2017 · 1 comment
Open

distinctBy does not work infinite scala.Stream #5

xuwei-k opened this issue Apr 13, 2017 · 1 comment

Comments

@xuwei-k
Copy link
Contributor

xuwei-k commented Apr 13, 2017

No description provided.

@cvogt
Copy link
Owner

cvogt commented Apr 13, 2017

IIRC I took the implementation of def distinct in the std lib and modified it. That would mean .distinct probably has the same problem. I can imagine an implementation that keeps the known ones around as it lazily goes through the collection and skips the ones already seen.

xuwei-k added a commit to xuwei-k/scala-extensions that referenced this issue Apr 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants