💌 I create something new each week!
Learn Reactive Programming and stay tuned.
In Part 1, you’ve learned:
Today we focus on functions used as accumulator functions.
A function that:
value 1and one
Despite the names accumulator and accumulation, accumulator functions don’t store the result “for later use”. The operators do save the result. They will eventually give it back to their accumulator function. This is why accumulator functions need to take an accumulation as an argument.
This function has no memory
Even if a function is used as an accumulator function, it doesn’t have to “accumulate” the two input values. It can ignore the second argument:
count + 1
This function only increments the