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

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.



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

Search: