Comment

Comment by kaba0

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.

parent kaba0 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton