Skip to content
Snippets Groups Projects
Commit 52331b80 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Add support for Max and Min in CombineMapper

parent f16293b1
No related branches found
No related tags found
No related merge requests found
...@@ -208,6 +208,9 @@ class CombineMapper(RecursiveMapper): ...@@ -208,6 +208,9 @@ class CombineMapper(RecursiveMapper):
self.rec(expr.left, *args), self.rec(expr.left, *args),
self.rec(expr.right, *args))) self.rec(expr.right, *args)))
map_max = map_sum
map_min = map_sum
def map_list(self, expr, *args): def map_list(self, expr, *args):
return self.combine(self.rec(child, *args) for child in expr) return self.combine(self.rec(child, *args) for child in expr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment