Syntax
- for i in iter; ...; end
- while cond; ...; end
- break
- continue
- @parallel (op) for i in iter; ...; end
- @parallel for i in iter; ...; end
- @goto label
- @label label
Whenever it makes code shorter and easier to read, consider using higher-order functions, such as map
or filter
, instead of loops.