Hacker News new | ask | show | jobs
by zzzoom 17 days ago
Bad ergonomics in loops is questionable design, but that loop in particular isn't better than total = reduce(a, +, 0).
1 comments

> that loop in particular isn't better than total = reduce(a, +, 0).

it is, in fact, better