repositories
/
cc1516.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
parsing lambdas
[cc1516.git]
/
examples
/
tempTest.spl
1
Let Int a = 4;
2
3
mapP1(xs) {
4
if(isEmpty(xs)) {
5
return [];
6
} else {
7
return (xs.hd + 1) : mapP1(xs.tl);
8
}
9
}
10
main() {
11
[Int] x = [];
12
[Int] y = [];
13
Int z = a();
14
var f = \x -> x+1;
15
x = mapP1(x);
16
y = mapP1(x);
17
return a() + 5;
18
}