Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
_zachs
· 4y ago · 0 comments
Agreed! I was excited because I thought I was going to get a better explanation of Foldable than what the linked docs provide!
Comments
[–]
dwohnitmok
4y 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.).