On Thu, 9 Nov 2023 09:40:34 GMT, Tagir F. Valeev <tval...@openjdk.org> wrote:

>> src/java.base/share/classes/java/util/stream/Gatherers.java line 426:
>> 
>>> 424:      * transformation for scenarios where no combiner-function can be
>>> 425:      * implemented, or for reductions which are intrinsically
>>> 426:      * order-dependent.
>> 
>> I think, we should highlight the most important difference between `fold` 
>> and `reduce`: `reduce` must provide an associative function, while `fold` 
>> does not require this restriction.
>
> Please take a look here, probably this comment was overlooked?

Yeah, I was thinking about that. I tried to word it will "less jargon" so it is 
easier to casually read and understand.
I'm wondering if adding "associativity" helps in that regard? 🤔

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/16420#discussion_r1387773098

Reply via email to