3 ms·
I agree: one of these things is not like the other. Map / filter / collect is not better because it is "fancy" but because those operations match the semantic i
by sanderjd 9y ago
I agree: one of these things is not like the other. Map / filter / collect is not better because it is "fancy" but because those operations match the semantic intent of most operations on collections while being constrained to do a single thing. Conversely, for loops are unconstrained and reflect no intent in particular.