]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Effects5.scl
(refs #7307) Added features field to SCL module header
[simantics/platform.git] / tests / org.simantics.scl.compiler.tests / src / org / simantics / scl / compiler / tests / scl / Effects5.scl
1 effectfulId :: a -> <Proc> a
2 effectfulId x = x
3
4 (.) :: (b -> <e2> c) -> (a -> <e1> b) -> a -> <e1,e2> c
5 (f . g) x = f (g x)
6
7 //doubleId :: a -> <Proc> a
8 doubleId = effectfulId . effectfulId
9
10 main :: Integer
11 main = runProc (doubleId (13 :: Integer))
12 --
13 13