top | item 30517310

(no title)

_zachs | 4 years ago

Agreed! I was excited because I thought I was going to get a better explanation of Foldable than what the linked docs provide!

discuss

order

dwohnitmok|4 years ago

`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.).