mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
[feat] statistics answerer: add the ability to calculate the range of a set
This commit is contained in:
@@ -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)),
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user