Examples
[cc1516.git] / examples / higher.spl
index c1ad6d6..1b6f1e6 100644 (file)
@@ -57,13 +57,13 @@ main(){
 
     var f = giveF();
 
-    var plus = \x y->x+y;
+    //var g = map(pl, [1,2,3]);
+    //var is = mapF(\f->f(1), g);
+    //var is = map(\f->(ap(f, 1)), g);
+    //var p = g.hd;
+    //var q = p(1);
 
-    var g = map(plus, [1,2,3]);
-    var is = mapF(\f->f(1), g);
-    //var is = map(\f->f(1), g);
-    var p = g.hd;
-    var q = p(1);
+    //print(q);
 
     //print("is.hd", is.hd);