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