I'm a bit confused on the 'a, b => a+b' for the reduce - is this defining the reduction function that will be done across output?
@juliob this is just some notation which describes a lambda function. It says the function takes in two arguments a and b and returns a + b.
Please log in to leave a comment.
I'm a bit confused on the 'a, b => a+b' for the reduce - is this defining the reduction function that will be done across output?