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

Make javaslang.collection.Iterator a Traversable #487

Closed
danieldietrich opened this issue Aug 19, 2015 · 1 comment
Closed

Make javaslang.collection.Iterator a Traversable #487

danieldietrich opened this issue Aug 19, 2015 · 1 comment

Comments

@danieldietrich
Copy link
Contributor

To do this, we (re-)add TraversableOnce. All methods of Traversable are move to TraversableOnce and Traversable extends TraversableOnce.

Then Iterator extends TraversableOnce.

Additionally we add two methods to TraversableOnce:

  • boolean hasDefiniteSize() // Iterator, Stream , Gen and Arbitrary return(s) false, all others return true
  • boolean isTraversableAgain() // Iterator returns false, all (others) return true

Note: TraversableOnce has undefined size and is not traversable again by definition.

@danieldietrich danieldietrich added this to the 2.0.0 milestone Aug 19, 2015
@danieldietrich
Copy link
Contributor Author

Add zip*/unzip to Iterator. More methods missing? Look at https://github.com/scala/scala/blob/v2.12.0-M2/src/library/scala/collection/Iterator.scala

ruslansennov added a commit to ruslansennov/vavr that referenced this issue Aug 24, 2015
danieldietrich added a commit that referenced this issue Aug 24, 2015
ruslansennov added a commit to ruslansennov/vavr that referenced this issue Aug 25, 2015
danieldietrich added a commit that referenced this issue Aug 25, 2015
ruslansennov added a commit to ruslansennov/vavr that referenced this issue Aug 26, 2015
danieldietrich added a commit that referenced this issue Sep 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant