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

Coincidentally, I've always found finding the maximum or minimum of a list with a for loop really finicky. It's much easier with a fold.


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: