Talk:Dot product: Difference between revisions

no edit summary
No edit summary
Line 7:
 
 
Unless there are objections, I would be inclineinclined to replace it with a slightly more plausible and typical functional definition, built from standard reusable primitives in a way which more visibly corresponds to the definition of a dot product. Using an iterative implementation of zipWith, and assuming ES5 JavaScript (which doesn't perform tail recursion), we could perhaps write something like:
 
<lang JavaScript>(function () {
9,655

edits