wowwww
[cc1516.git] / examples / test.spl
index bb74407..c230ff3 100644 (file)
@@ -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);
 }