by leafboi · 6y ago · 0 comments
Intuitively the composition is similar enough to function composition that is has the same basic ruleset and is how I'm working out the logic in my head. Think of the functor as a tuple of the accumulator and the value: (acc, x), and the function is just an op that takes in this tuple as a parameter and spits out a new tuple (acc, z) with the next value in the list.
I addressed it earlier here: https://news.ycombinator.com/item?id=24449271
No comments yet.