blob: 2a666a047e3ac3e8f20391f9d62e49c08cbe9020 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
Foo ::= struct {
x: int;
};
main ::= fn() Foo {
g ::= fn() int { 3 };
a : [3]int;
b := a[1:3];
b[0] = 7;
f: Foo;
each i, j := b {
f.x += i + j;
}
each k := 10..100 {
f.x += k;
}
f
};
|