RFR: JDK-8319123 : Implementation of JEP-461: Stream Gatherers (Preview)
Viktor Klang
vklang at openjdk.org
Wed Nov 8 17:48:03 UTC 2023
On Wed, 8 Nov 2023 16:39:33 GMT, Tagir F. Valeev <tvaleev at openjdk.org> wrote:
>> That's a good question, and here's my thinking—`scanRight` doesn't make any sense for a construct which supports unboundedness, so if we were discussing *Collections* I'd be more inclined to agree (but it is more likely that reversing the collection and then calling scanLeft would be better).
>
> See the previous comment. Even if we don't provide `scanRight` for symmetry, the name `scanLeft` for this method would be clearer. As an alternative, consider the `prefix` name, as we already have `Arrays.parallelPrefix`, which performs the same operation on arrays.
I'll take that under consideration 👍
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16420#discussion_r1386993704
More information about the core-libs-dev
mailing list