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

Iterator should internally not make use of toStream() anymore #1945

Open
8 tasks
danieldietrich opened this issue Apr 12, 2017 · 3 comments
Open
8 tasks

Iterator should internally not make use of toStream() anymore #1945

danieldietrich opened this issue Apr 12, 2017 · 3 comments

Comments

@danieldietrich
Copy link
Contributor

danieldietrich commented Apr 12, 2017

Instead we should implement stateful Iterators that achieve the same functionality. The reason is memory-efficiency.

  • foldRight(Object, BiFunction)
  • partition(Predicate)
  • reduceRight(BiFunction)
  • slideBy(Function)
  • span(Predicate)
  • unfoldLeft(Object, Function)
  • unzip(Function)
  • unzip3(Function)
@danieldietrich
Copy link
Contributor Author

Closing the issue, Iterator now does not contain toStream() anymore. Thx @ruslansennov for fixing it!

@danieldietrich
Copy link
Contributor Author

Will re-open it, also Stream.ofAll(...) should not be used anymore by Iterator internally.

@danieldietrich danieldietrich modified the milestones: vavr-1.0.0, vavr-1.1.0 Nov 26, 2017
@danieldietrich danieldietrich modified the milestones: vavr-1.1.0, vavr-1.0.0 Oct 3, 2018
@danieldietrich
Copy link
Contributor Author

Note: Iterator does not extends Traversable anymore. It might be an option not to implement all methods.

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

1 participant