3 ms·
Sure. I'm not suggesting it be used to this effect; I'm noting the generality as an interesting point.
by heydenberk 5y ago
Sure. I'm not suggesting it be used to this effect; I'm noting the generality as an interesting point.
- Vanit 5y agoI 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.