summaryrefslogtreecommitdiff
path: root/test.fy
diff options
context:
space:
mode:
Diffstat (limited to 'test.fy')
-rw-r--r--test.fy9
1 files changed, 8 insertions, 1 deletions
diff --git a/test.fy b/test.fy
index 84dda3a..0331c31 100644
--- a/test.fy
+++ b/test.fy
@@ -2,4 +2,11 @@
* Examples of how to use arrays
*#
-say ["string"];
+# 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;