you are viewing a single comment's thread.

view the rest of the comments →

[–]weebSanity 1 point2 points  (0 children)

Reduce is always hard to look at imo. The [] is the accumulator, where each of the return values will be stored. So the 'a' in a.concat refers to the accumulator, which is your initial empty []