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

In a very large sequence, you would be using numpy. I assumed the purpose of their example was some sort of clarity, over `sum(age > 17 for age in ages)`, rather than performance.


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

Search: