]> gerrit.simantics Code Review - simantics/platform.git/blob - tests/org.simantics.scl.compiler.tests/src/org/simantics/scl/compiler/tests/scl/Index.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 / Index.scl
1 import "Prelude"
2
3 f :: Integer -> Maybe Integer
4 f = index [(1,2),(2,4),(3,6),(4,8)]
5
6 main = f 3
7 --
8 6