repositories
/
cc1516.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
wowwww
[cc1516.git]
/
examples
/
test.spl
diff --git
a/examples/test.spl
b/examples/test.spl
index
bb74407
..
c230ff3
100644
(file)
--- a/
examples/test.spl
+++ b/
examples/test.spl
@@
-18,8
+18,13
@@
foldr(f, acc, l){
}
}
+times(x, y){
+ return x * y;
+}
+
main(){
[Int] l1 = 1 : 2 : 3 : 4 : 5 : [];
- var c = foldr(plus, 0, l1);
- var d = map(plus(1), l1);
+ var c = foldr(times, 1, l1);
+ print(c);
+// var d = map(plus(1), l1);
}