1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Foo ::= struct { x: int; }; foo ::= fn() int { 3 }; #export main ::= fn() { g ::= fn() int { 3 }; a := new (int, 3); b := a[1:3]; b[0] = 7; f: Foo; each i, j := b { f.x += i + j; } each k := 10..100 { f.x += k; } del(a); };