News for hackers. Stuff that matters.
Re:Ask HN: Why do functional programmers hate loops (for, wh... by nullcipher on Tuesday July 11, 2023 @09:57AM (#36681047)
If i ask you to add from 1 to 10 , is that how you add ? 1 + 10 + let_me_add_from2_9 ? So yeah, not at all natural.
Re:Ask HN: Why do functional programmers hate loops (for, wh... by orwin on Tuesday July 11, 2023 @10:19AM (#36681333)
You easily see it's (1+10)*10/2, so you'll get to 55 way faster this way. Way more natural.