summaryrefslogtreecommitdiff
path: root/test.fy
blob: 0331c314f04ac12c558be136ec51b18eaf80c2a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#*
 * 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;