3 ms·
I like the name `fold` as used by Haskell, Racket, et al. It gives me an image of folding up a long list into a ball, one chunk at a time.
by adamddev1 16d ago
I like the name `fold` as used by Haskell, Racket, et al. It gives me an image of folding up a long list into a ball, one chunk at a time.
- anitil 16d agoI like fold too, but I can never remember foldl vs foldr, it's always backwards to what I expect somehow
- internet_points 16d agohttps://news.ycombinator.com/item?id=49736033 https://news.ycombinator.com/item?id=49736033 may help :)
- anitil 15d agoThanks! That visual style approach works better for me, hopefully it sticks