top | item 29811693

(no title)

heydenberk | 4 years ago

Sure. I'm not suggesting it be used to this effect; I'm noting the generality as an interesting point.

discuss

order

Vanit|4 years ago

I assumed you were aware of the issues, which is why I said those at home who might just take it at face value as a neat pattern. :)

I personally do actually use flatMap sometimes as outlined in your example - perf is an after issue and I'll refactor if the concise code isn't worth the cost.