On Wed, 8 Nov 2023 16:39:33 GMT, Tagir F. Valeev <tval...@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