mirror of
https://github.com/CatalaLang/catala.git
synced 2024-09-20 00:41:05 +03:00
16 lines
493 B
Plaintext
16 lines
493 B
Plaintext
> Module Prorata_external external
|
|
|
|
Define a prototype for an external function in an ml file
|
|
|
|
```catala-metadata
|
|
# Trivial algorithm that cumulates all rounding errors to the last element
|
|
declaration prorata content list of money
|
|
depends on amount content money,
|
|
weights content list of money
|
|
|
|
# Another algorithm that distributes errors along the way
|
|
declaration prorata2 content list of money
|
|
depends on amount content money,
|
|
weights content list of money
|
|
```
|