Previous: OrderedCollection-adding, Up: OrderedCollection


1.123.4 OrderedCollection: removing

remove: anObject ifAbsent: aBlock
Remove anObject from the receiver. If it can't be found, answer the result of evaluating aBlock


removeAtIndex: anIndex
Remove the object at index anIndex from the receiver. Fail if the index is out of bounds.


removeFirst
Remove an object from the start of the receiver. Fail if the receiver is empty


removeLast
Remove an object from the end of the receiver. Fail if the receiver is empty