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

Traditional C style for is terrible compared to what you can do with iterators in my opinion, but idk if C++ has those.

    list.iter().sum()
ezpz


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

Search: