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

Because you need to track and update the temporary state. Maps and folds let you define your stepping algorithm separately.


In python? I wasn't aware that fold did anything other then iterate in order...




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

Search: