Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: