From a6e9af8261adc8dd9770b113b5dc632fcbd0b86e Mon Sep 17 00:00:00 2001 From: Midgard Date: Fri, 16 Apr 2021 18:25:56 +0200 Subject: [PATCH] Rename "mul" to better "product" --- maths | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }