+--------+ V | >>-put(item---,index-+-)---------------------------------------><
Example 5.153. Array class - put method
a = .array~new a~put("Fred", 1) -- a = .array~of("Fred") a~put("Mike", 2) -- a = .array~of("Fred", "Mike") a~put("Mike", 1) -- a = .array~of("Mike", "Mike") do name over a say name end /* Output would be: */ Mike Mike