Suppose I wish to process 2 List of the same length.
A good example would be vector dot product.
Suppose vector a = [1 2 3], b = [0; 1; 2;], then a .* b = 1*0 + 2*1 + 3*2 = 8
Can I do this with stream?
Suppose I wish to process 2 List of the same length.
A good example would be vector dot product.
Suppose vector a = [1 2 3], b = [0; 1; 2;], then a .* b = 1*0 + 2*1 + 3*2 = 8
Can I do this with stream?