]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Collaz.scl
Fixed all line endings of the repository
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / Collaz.scl
index 2e4552d0d6235202dfcf3d849a459984fdf6673b..08de951646c6e46a267a58d494e64296ecc14f4b 100644 (file)
@@ -1,16 +1,16 @@
-import "Prelude"\r
-\r
-f x = if x `mod` 2 == 0\r
-      then x `div` 2\r
-      else 3*x + 1\r
-fd x = unfoldr (\x -> do\r
-                   r = f x \r
-                   if x == 1\r
-                   then Nothing\r
-                   else Just (x,r)\r
-                ) x\r
-\r
-//main :: [Integer]                \r
-main = fd 7\r
---\r
+import "Prelude"
+
+f x = if x `mod` 2 == 0
+      then x `div` 2
+      else 3*x + 1
+fd x = unfoldr (\x -> do
+                   r = f x 
+                   if x == 1
+                   then Nothing
+                   else Just (x,r)
+                ) x
+
+//main :: [Integer]                
+main = fd 7
+--
 [7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2]
\ No newline at end of file