Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
zzzoom
· 3w ago · 0 comments
Bad ergonomics in loops is questionable design, but that loop in particular isn't better than total = reduce(a, +, 0).
Comments
[–]
bmandale
3w ago
> that loop in particular isn't better than total = reduce(a, +, 0).
it is, in fact, better