]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Index.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / Index.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Index.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Index.scl
new file mode 100644 (file)
index 0000000..8a98aec
--- /dev/null
@@ -0,0 +1,8 @@
+import "Prelude"\r
+\r
+f :: Integer -> Maybe Integer\r
+f = index [(1,2),(2,4),(3,6),(4,8)]\r
+\r
+main = f 3\r
+--\r
+6
\ No newline at end of file