omega-mcp
aien-dev/omega-mcp
Brought by drakestapleton
omega-mcp / data / examples / om2_out.om
| 1 | om2 |
| 2 | note an out parameter is written by the unit; inside the unit it is an edit of T N |
| 3 | fn fill r out ulong 3 v ulong to ulong |
| 4 | for i ulong 3 |
| 5 | put r i add v i |
| 6 | end |
| 7 | ret get r 2 |
| 8 | end |
| 9 | fn main to int |
| 10 | a = new ulong 3 0 |
| 11 | ret int fill a 10 |
| 12 | end |