Fieldselectors when assigning
[cc1516.git] / examples / old / quickTest.spl
1 printInts(xs) :: [Int] -> Void {
2 if(isEmpty(xs)) { return; }
3 else { print(xs.hd); printInts(xs.tl); }
4 }
5
6 main() {
7 var xs = [1,2,3];
8 xs.hd = 18;
9 xs.tl = [];
10 printInts(xs);
11 }