]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Vector1.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / tests / org / simantics / scl / compiler / tests / scl / Vector1.scl
diff --git a/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Vector1.scl b/bundles/org.simantics.scl.compiler/tests/org/simantics/scl/compiler/tests/scl/Vector1.scl
new file mode 100644 (file)
index 0000000..33b6c86
--- /dev/null
@@ -0,0 +1,8 @@
+import "StandardLibrary"\r
+\r
+a :: Vector Double\r
+a = vector [1,2,3]\r
+\r
+main = map (a !) [0..length a-1]\r
+--\r
+[1.0, 2.0, 3.0]
\ No newline at end of file