Hacker News new | past | comments | ask | show | jobs | submit login

Then what is? A filtering then later mapping with a bit of flatMap and a final reduce?

Because if it is not functional trickery, I don’t really know what is (and no, recursion is not the answer) and it is sure clearer than the 3 nested loop or whatever one might come up with.




Monads :P




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

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

Search: