summaryrefslogtreecommitdiff
path: root/test.fy
diff options
context:
space:
mode:
authoradmin (centauri.fritz.box) <puppet@mx.buetow.org>2014-06-30 23:53:04 +0200
committeradmin (centauri.fritz.box) <puppet@mx.buetow.org>2014-06-30 23:53:04 +0200
commitadc4b59a3e7c9db6f33670164490830d87331228 (patch)
treeadc5d21856852bfb5c3cca794a9c07ad476d877e /test.fy
parent63cf3028445d8d213ffc774f77aafd7283cb4fbd (diff)
parent5ab5de91eb0ae6ed9db78a2c8c47ec67f105e504 (diff)
Diffstat (limited to 'test.fy')
-rw-r--r--test.fy23
1 files changed, 0 insertions, 23 deletions
diff --git a/test.fy b/test.fy
deleted file mode 100644
index 4f9af9b..0000000
--- a/test.fy
+++ /dev/null
@@ -1,23 +0,0 @@
-#*
- * Examples of how to use arrays
- *#
-
-# Create a function bar, returns 0 by default
-func bar { say "bar" }
-
-# Create a multi dimensional array foo
-my foo = [bar, 1, 4/2, double "3", ["A", ["BA", "BB"]]];
-
-# Run on each element of foo recursive 'say'
-say foo;
-
-# Print the length of the array
-assert 5 == say len foo;
-
-# Print the last index of the array
-assert 4 == say ind foo;
-
-# Print the 3rd element of the array
-say foo[3];
-
-#say "bla";