-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
b109
-
Verified
Stream.iterate() and Stream.generate() are factories for infinite streams. It would be nice if there were a similar stream factory methods that could return finite streams.
We are also considering something like Stream.takeWhile() -- seeJDK-8071597 -- but this will terminate a stream based on a predicate on the stream value itself, not on some changed state of the stream source (e.g., reaching EOF).
We are also considering something like Stream.takeWhile() -- see
- relates to
-
JDK-8159821 "PrimitiveStream.iterateFinite" methods contain incorrect code sample
-
- Resolved
-