-
Effekt Library
- control
- Label
- break
- continue
- loop
- each
- repeat
- control Jump to source: libraries/common/control.effekt
- Label
- break
: Unit / {} - continue
: Unit / {} - loop
{ f: {Label} => Unit }: Unit / {} - each
(start: Int, end: Int) { action: (Int){Label} => Unit } - repeat
(n: Int) { action: {Label} => Unit }
Example usage: examples/stdlib/control
Calls provided action repeatedly with support for breaking. `start` is inclusive, `end` is not.