Talk:Dot product: Difference between revisions

Content added Content deleted
(Perhaps a more plausible version of the 'for the functional fetishists' JavaScript example)
 
Line 4: 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
# 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)
# not demonstrating the use of the obvious functional primitives and composition in this case: '''sum(zipWith(product, xs, ys)'''