catala/tests/test_array/good/map.catala_en
2023-04-14 18:24:09 +02:00

26 lines
592 B
Plaintext

## Article
```catala
declaration scope B:
output x content collection money
output z content collection boolean
scope B:
definition x equals [$4; $8 ]
definition z equals (m >= $4.95) for m among x
```
```catala-test-inline
$ catala Interpret -s B
[RESULT] Computation successful! Results:
[RESULT] x = [ $4.00; $8.00 ]
[RESULT] z = [ false; true ]
```
```catala-test-inline
$ catala Interpret_Lcalc -s B --avoid_exceptions --optimize
[RESULT] Computation successful! Results:
[RESULT] x = ESome [ ESome $4.00; ESome $8.00 ]
[RESULT] z = ESome [ ESome false; ESome true ]
```