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

> Thanks to laziness, foldr is usually preferred, and it is not tail recursive.

With guarded recursion. foldl' has its place.



Yes, hence my weasel-y expression of 'usually preferred'.




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

Search: