sovereign-intelligence
Front door to Drake Stapleton's sovereign stack.
Brought by drakestapleton
sovereign-intelligence / harness / examples / for_bound.om
| 1 | note for_bound: for i T K bound N caps the passes at N (1..9223372036854775807); here 5 passes, exit 10 |
| 2 | note with bound N every count, a number or a value, traps 4 after N passes (trap4_for_bound.om) |
| 3 | fn main to int |
| 4 | n = ulong 5 |
| 5 | s = ulong 0 |
| 6 | for i ulong n bound 10 |
| 7 | s = add s i |
| 8 | end |
| 9 | ret int s |
| 10 | end |