Next: Bag-enumerating the elements of a collection, Previous: Bag class-basic, Up: Bag [Index]
Add an occurrence of newObject to the receiver. Answer newObject. Fail if newObject is nil.
If anInteger > 0, add anInteger occurrences of newObject to the receiver. If anInteger < 0, remove them. Answer newObject. Fail if newObject is nil.