Implement maximum and minimum aggregation function #52
Labels
🔧 compiler
Issue concerns the compiler
✨ enhancement
New feature or request
❓ invalid
This doesn't seem right
Catala supports
maximum
andminimum
aggregation functions for collections. Right now, these are only present in the surface syntax.One has to fill the holes like this one :
catala/src/catala/catala_surface/desugaring.ml
Lines 362 to 364 in 933fd02
To do that, the expression
maximum money for salary in salaries of (salary - $200)
should desugar toThe problem lies within the
<INIT>
expression. What to put here? I guess this should be provided by the user, so we have to update the syntax to something likemaximum money context $0 for salary in salaries of (salary - $200)
The text was updated successfully, but these errors were encountered: