Dividing Streams.java
Brian Goetz
brian.goetz at oracle.com
Thu Apr 11 18:13:04 PDT 2013
> Not sure where (or even if):
> iterate (given T0 and f, infinite stream of T0, f(T0), f(f(T0)), ...)
> generate (infinite stream of independent applications of a generator,
> good for infinite constant and random streams, though not much else,
> used by impl of Random.{ints,longs,gaussians}).
Anyone want to argue for narrowing or expanding this list?
> Others that we've talked about adding:
> ints(), longs() // to enable things like ints().filter(...).limit(n)
Anyone compelled by these? I kind of like them.
Do we want to add inclusive as well as half-open ranges?
> indexedGenerate(i -> T)
Anyone compelled by this one?
More information about the lambda-libs-spec-observers
mailing list