3 ms·
I find `foo.iter().map(|x| x.bar()).collect()` almost always easier to read and better at expressing intent than a for loop. The other direction is more intere
by Mond_ 2y ago
I find `foo.iter().map(|x| x.bar()).collect()` almost always easier to read and better at expressing intent than a for loop.
The other direction is more interesting to me: Those are the awkward cases where people sometimes overdo it with the functional iterator heavy style.