Extension: iterator operator

Example

Print all the values of an array, one per line:

print("%d\n", a[0::10]);

Syntax & Semantics

The expression a::b causes the enclosing statement to be executed multiple times, once with each value from a up to (but not including) b.

This operator originated in Alef.

Implementation

Not implemented.

Extend compilestmt to build a new statement that replaces :: with a variable, and then emit a for loop over that variable.