You can use 'reduce' to build 'flatMap'. You can use 'flatMap' to build 'map' and 'filter'. What's one step back from 'reduce'?
Conversation
1
4
I'm trying to grok this and not quite succeeding. I think that stepped either too far back or a level up.
1
Replying to
Say you want to model (*2). Well, you could say that’s an unfold: (input -> [input, input]) composed with a fold: (+).
Replying to
Ah, I see, and reduce is just fold. I was kind of taking "the input is a sequence" as a given.

