]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/performance/SumOfInverses2.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / performance / SumOfInverses2.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/performance/SumOfInverses2.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/performance/SumOfInverses2.scl
new file mode 100644 (file)
index 0000000..7745029
--- /dev/null
@@ -0,0 +1,4 @@
+import "Prelude"\r
+\r
+main :: Integer -> Double\r
+main m = sum [1/(fromInteger x) | x <- [1..m]]\r