]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Effects4.scl
Merge commit 'a2a4242'
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / Effects4.scl
1 effectfulId :: a -> <Proc> a\r
2 effectfulId x = x\r
3 \r
4 //double :: (a -> <e> a) -> a -> <e> a\r
5 double f x = f (f x)\r
6 \r
7 doubleId = double effectfulId\r
8 \r
9 main :: Integer\r
10 main = runProc (doubleId (13 :: Integer))\r
11 --\r
12 13