]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Select1.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / Select1.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Select1.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Select1.scl
new file mode 100644 (file)
index 0000000..f8d0359
--- /dev/null
@@ -0,0 +1,11 @@
+import "StandardLibrary"\r
+\r
+main = let\r
+    l = [1..3] \r
+  in\r
+    select (?x,?y) where \r
+        ?x <- l\r
+        ?y <- l\r
+        ?x = ?y\r
+--\r
+[(1,1), (2,2), (3,3)]
\ No newline at end of file