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

Comment by yipinwong

15 hours ago

Reduce introduces state (accumulator), unlike map/filter which normally are used for immutability.

I use both, but do not like reduce at all. It's harder to read, yes. But I see the point of using them all.

0 comments

yipinwong

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities