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
1 changed files with 2 additions and 2 deletions

4
maths
View File

@ -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
}