Talk:Dot product: Difference between revisions
m
→I suggest replacing the 'for the functional fetishists' JavaScript version
(Perhaps a more plausible version of the 'for the functional fetishists' JavaScript example) |
|||
Line 4:
# Disrupting functional composition by using exception handling, rather than returning 'bottom', undefined, or a Maybe monad value when the two lists differ in length, and
# not demonstrating the use of the obvious functional primitives and composition in this case: '''sum(zipWith(product, xs, ys)'''
|