3 ms·
And more importantly what is essentially verbatim in your question: Why is flatMap = map().flat() and not flat().map()
by maxnoe 7y ago
And more importantly what is essentially verbatim in your question:
Why is flatMap = map().flat() and not flat().map()
- sullyj3 7y agoBecause the concept originated in languages where function composition is what's emphasized, rather than method chaining. flatmap = flat ∘ map