Basic Let functionality
[cc1516.git] / examples / tempTest.spl
index 3da3635..23421f0 100644 (file)
@@ -1,17 +1,17 @@
+Let Int a = 4;
+
 mapP1(xs) {
     if(isEmpty(xs)) {
         return [];
     } else {
         return (xs.hd + 1) : mapP1(xs.tl);
     }
-}
-empt() {
-    
 }
 main() {
     [Int] x = [];
     [Int] y = [];
+    Int z = a();
     x = mapP1(x);
     y = mapP1(x);
-    return;
+    return a() + 5;
 }
\ No newline at end of file