Re:Understanding Monoids using F#
by MrBuddyCasino on Thursday March 05, 2015 @05:48AM
(#9150033)
The introduction of stream processing in Java 8 is a concrete example - it can auto-parallelize computations. It was not immediately clear to me why an identity value was needed in this function:
After reading up on monoids, it became clear. Note how the reduce() variant that does not take an identity value is allowed to return null!
[ Parent
| on HN ]
There are no comments on this comment yet.