Method category index
enumerating the elements of a collection (instance)
extracting items (instance)
testing collections (instance)
Answer a new instance of the receiver
Answer a new instance of the receiver, with space for size distinct objects
Add an occurrence of newObject to the receiver. Answer newObject. Fail if newObject is nil.
add: newObject withOccurrences: anInteger
If anInteger > 0, add anInteger occurrences of newObject to the receiver. If anInteger < 0, remove them. Answer newObject. Fail if newObject is nil.
Answer a set with the elements of the receiver
Evaluate the block for all members in the collection.
Answer a collection of counts with elements, sorted by decreasing count.
Put on aStream a representation of the receiver
Remove oldObject from the collection and return it. If can't be found, answer instead the result of evaluationg anExceptionBlock
Put on aStream some Smalltalk code compiling to the receiver
Answer whether the receiver and aBag contain the same objects
Answer an hash value for the receiver
Answer whether we include anObject
Answer the number of occurrences of anObject found in the receiver
Answer the total number of objects found in the receiver