Hacker News
new
past
comments
ask
show
jobs
points
by
mcphage
13 hours ago
|
comments
by
snackbroken
13 hours ago
|
[-]
Right. It's just one more thing you have to think about with Reduce that's not something you have to consider with Map/Filter.
reply
by
Lvl999Noob
5 hours ago
|
parent
|
[-]
If you have need of a reducing operation though, you will still need to think about that value. If you are summing up a list of numbers, it doesn't matter whether you use reduce or a loop, you need to set some initial value.
reply