Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by adamddev1

14 hours 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.

2 comments

adamddev1

Reply

anitil  13 hours ago

I like fold too, but I can never remember foldl vs foldr, it's always backwards to what I expect somehow

  • internet_points  5 hours ago

    https://news.ycombinator.com/item?id=49736033 may help :)

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities