Vector products: Difference between revisions
m
→JS ES6
m (→JS ES6) |
m (→JS ES6) |
||
Line 1,928:
) : fr(e.Right)
) : undefined;
// identity :: a -> a▼
const identity = x => x;▼
// mul (*) :: Num a => a -> a -> a▼
const mul = a => b => a * b;▼
// Curried function -> [Argument] -> a more saturated value
Line 1,942 ⟶ 1,948:
)
) : f;
▲ // identity :: a -> a
▲ const identity = x => x;
▲ // mul (*) :: Num a => a -> a -> a
▲ const mul = a => b => a * b;
// show :: Either String a -> String
|