Hacker News new | ask | show | jobs
by _zachs 1572 days ago
Agreed! I was excited because I thought I was going to get a better explanation of Foldable than what the linked docs provide!
1 comments

`Foldable` is basically the FP equivalent of `Iterable` in Java if you're familiar with that. It's an abstraction you can write against if you want to support all sorts of data structures that can be iterated on (e.g. arrays, lists, trees, etc.).