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

Not strictly true, but all maps can be represented as a fold. That's not usually the best tool though.


To clarify this now that I'm not on my phone, folds may not express termination by themselves, they depend upon the type that they're folding up. More formally, folds are catamorphisms which operate on data, but you often need to use codata to generate the structures to fold over.




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

Search: