aspis.common.multiply
- aspis.common.multiply(a, b, /)
Curried multiplication function.
Multiplies two numbers together. Can be partially applied.
- Parameters:
a (number) – The first number to multiply.
b (number) – The second number to multiply.
- Returns:
The product of a and b.
- Return type:
number
Example
>>> multiply(2, 3) 6 >>> multiply(4)(5) 20 >>> double = multiply(2) >>> double(7) 14