Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
dsego
· 12y ago · 0 comments
Why is that cleaner? A for-loop is one of the basic programming constructs.
Comments
[–]
mneary
12y ago
A for-loop might be a basic programming construct, but it shouldn't be. Mutation and a control flow construct makes for a much worse outlook to the problem than does recursive application of a function.
[–]
agumonkey
12y ago
reduce is one very fundamental construct too
https://www.google.com/search?q=universality+of+reduce