Product Site

5.3.6.30. removeItem

Removes an item from the array. If the target item exists at more than one index, the first located item is removed. Item equality is determined by using the == method of item. The return value is the removed item.
Example 5.188. Array class — removeItem method
a = .array~of("Fred", "Mike", "Mike", "David")
a~removeItem("Mike")  -- removes the item at index "2"