]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Guards1.scl
Supply SVG text editor with element measurement context
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / Guards1.scl
1 import "Prelude"
2
3 fib :: Integer -> Integer
4 fib x | x <= 2 = 1
5       | True   = fib (x-1) + fib (x-2)
6
7 main = fib 13
8 --
9 233