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

