Previous: Bag-storing, Up: Bag

1.8.8 Bag: testing collections

= aBag
Answer whether the receiver and aBag contain the same objects

Answer an hash value for the receiver

includes: anObject
Answer whether we include anObject

occurrencesOf: anObject
Answer the number of occurrences of anObject found in the receiver

Answer the total number of objects found in the receiver