Dot product: Difference between revisions
Content deleted Content added
m →JS ES6: Tidied |
m →JS ES6: Tidied |
||
Line 1,597: | Line 1,597: | ||
// ------------------- DOT PRODUCT ------------------- |
// ------------------- DOT PRODUCT ------------------- |
||
// dotProduct :: [ |
// dotProduct :: [Num] -> [Num] -> Num |
||
const dotProduct = xs => |
const dotProduct = xs => |
||
ys => xs.length === ys.length |
ys => xs.length === ys.length |