]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/performance/SumOfInverses.scl
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / performance / SumOfInverses.scl
1 import "Prelude"
2
3 main :: Double -> Double
4 main m = loop 1 0
5   where
6     loop x cur = if x > m
7                  then cur
8                  else loop (x+1) (cur + 1 / x)