Rename "mul" to better "product"
This commit is contained in:
parent
ddc6306d53
commit
a6e9af8261
1 changed files with 2 additions and 2 deletions
4
maths
4
maths
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue