diff options
Diffstat (limited to 'test.fy')
| -rw-r--r-- | test.fy | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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; |
