diff options
| author | Paul Buetow <paul@buetow.org> | 2008-11-09 11:29:20 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-11-09 11:29:20 +0000 |
| commit | 3c8a930c790976bb98ea0abeb144f2757ca1cc30 (patch) | |
| tree | 133dae8aa2cb4f7bdb565d850c7c7b7a080d26e2 | |
| parent | 0c69b76e7d7cbc50d4f87e41766a2de1394a6cad (diff) | |
updated the array example.
| -rw-r--r-- | test.fy | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -10,3 +10,9 @@ 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; |
