RFR: 8357647 : Stream gatherers forward upstream size information to downstream
Johannes Döbler
duke at openjdk.org
Fri May 23 16:16:51 UTC 2025
On Fri, 23 May 2025 16:06:08 GMT, Viktor Klang <vklang at openjdk.org> wrote:
>> @jdlib I guess that would depend on the definition of *value* and *cost* in this context.
>
> API modifications would definitely be its own thing.
@viktorklang-ora, @liach I agree given the artificial starting point of the discussion - instead of a Gatherer the stackoverflow poster should have used `Stream.limit(long)` or `Random.ints(long streamSize, int , int)` to achieve the goal...
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25418#discussion_r2104949317
More information about the core-libs-dev
mailing list