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

> In practice, I don't think there's a List typeclass in Haskell.

I'm a Haskell n00b, but there is Functor, Foldable and friends, right? That's basically what you're talking about, although the methods are generalaized map, fold and so on instead of get and length. It seems like this just supports your point: there's nothing making functions operating on data in an FP less abstract than objects and methods.



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

Search: