Product SiteDocumentation Site

5.3.6.8. allItems


>>-allItems----------------------------------------------------><

Returns an array of all items contained in the array.

Example 5.133. Array class - allItems method

a = .array~of("Fred", "Mike", "David")

do name over a~allItems
   say name  -- displays "Fred", "Mike", and "David"
end

a~remove(2)  -- remove second item

do name over a~allItems
   say name  -- displays "Fred" and "David"
end