diff --git a/maths b/maths index 74376bd..6293cb6 100755 --- a/maths +++ b/maths @@ -6,10 +6,10 @@ from functools import reduce as fold import argparse -mul = lambda xs: fold(operator.mul, xs) +product = lambda xs: fold(operator.mul, xs) operators = { "sum": sum, "+": sum, - "mul": mul, "*": mul, + "mul": product, "product": product, "prod": product, "*": product, "max": max, "min": min }