|
supplier >>-supplier---------------------------------------------------->< Returns a Supplier () object for the collection. The supplier allows you to iterate over the index/item pairs for the collection. The supplier enumerates the array items in their sequenced order. For multi-dimensional arrays, the supplier index method will return the index values as an array of index numbers. Array class - supplier method
a = .array~of("Fred", "Mike", "David")
sup = a~supplier
a~append("Joe")
do while sup~available
say sup~item -- displays "Fred", "Mike", and "David"
sup~next
end
|