mirror of
https://github.com/CatalaLang/catala.git
synced 2024-09-20 00:41:05 +03:00
26 lines
592 B
Plaintext
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 ]
|
|
```
|