From 3c8a930c790976bb98ea0abeb144f2757ca1cc30 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 9 Nov 2008 11:29:20 +0000 Subject: updated the array example. --- test.fy | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test.fy b/test.fy index 0331c31..cf34f24 100644 --- a/test.fy +++ b/test.fy @@ -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; -- cgit v1.2.3