]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Index.scl
Re-enabled Acorn transaction cancellation support for testing
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / Index.scl
1 import "Prelude"\r
2 \r
3 f :: Integer -> Maybe Integer\r
4 f = index [(1,2),(2,4),(3,6),(4,8)]\r
5 \r
6 main = f 3\r
7 --\r
8 6