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

> Indeed, `sum` was the one common use case I could think of

There are 4 other not-completely-uncommon cases in the builtins, implemented in a significantly more efficient manner for the latter 2 (ignoring Python v C): min, max, any and all. And map and filter technically but repeatedly concatenating lists together (in python) isn't the most useful way to peg your CPU.



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

Search: