repositories
/
cc1516.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
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
}