Rename "mul" to better "product"

This commit is contained in:
Midgard 2021-04-16 18:25:56 +02:00
parent ddc6306d53
commit a6e9af8261
Signed by: midgard
GPG key ID: 511C112F1331BBB4

4
maths
View file

@ -6,10 +6,10 @@ from functools import reduce as fold
import argparse import argparse
mul = lambda xs: fold(operator.mul, xs) product = lambda xs: fold(operator.mul, xs)
operators = { operators = {
"sum": sum, "+": sum, "sum": sum, "+": sum,
"mul": mul, "*": mul, "mul": product, "product": product, "prod": product, "*": product,
"max": max, "max": max,
"min": min "min": min
} }