]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Map1.scl
(refs #7307) Added features field to SCL module header
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / Map1.scl
index 5d9f38c99f9ef414a19c2deb7acbd8610c67b137..c24aeedfdcbcc3f73c345926877db35c937446fd 100644 (file)
@@ -1,18 +1,18 @@
-data List a = Nil | Cons a (List a)\r
-\r
-map f Nil = Nil\r
-map f (Cons h t) = Cons (f h) (map f t)\r
-\r
-map2 f l = run l\r
-  where\r
-    run Nil = Nil\r
-    run (Cons h t) = Cons (f h) (run t)\r
-\r
-map3 f l = run l\r
-  where\r
-    run Nil = Nil\r
-    run (Cons h t) = Cons (f h) (map f t)\r
-    \r
-main = "Foo"\r
---\r
+data List a = Nil | Cons a (List a)
+
+map f Nil = Nil
+map f (Cons h t) = Cons (f h) (map f t)
+
+map2 f l = run l
+  where
+    run Nil = Nil
+    run (Cons h t) = Cons (f h) (run t)
+
+map3 f l = run l
+  where
+    run Nil = Nil
+    run (Cons h t) = Cons (f h) (map f t)
+    
+main = "Foo"
+--
 Foo
\ No newline at end of file