mirror of
https://github.com/searxng/searxng.git
synced 2025-08-07 09:01:28 -04:00
[feat] statistics answerer: add the ability to calculate the range of a set
This commit is contained in:
parent
6b9e12e4c1
commit
46f41d2138
@ -21,6 +21,7 @@ kw2func = [
|
||||
("avg", lambda args: sum(args) / len(args)),
|
||||
("sum", sum),
|
||||
("prod", lambda args: reduce(mul, args, 1)),
|
||||
("range", lambda args: max(args) - min(args)),
|
||||
]
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user