Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
dan-k
· 13y ago · 0 comments
With reduce you don't even need to use the & notation, it has that syntactic sugar built in, so you can just do this:
[1, 2, 3, 4, 5].reduce(:+)
Comments
No comments yet.
Better HN