5 includeAll: aCollection
8 aCollection do: [ :e | self include: e ].
16 (array at: (self find: anObject)) ifNil: [^ false].
21 occurancesOf: anObject
22 (self includes: anObject)
30 ^ self include: anObject!
35 anObject ifNil: [ self error: 'Sets cannot meaningfully contain nil'].
37 index := self find: anObject.
38 (array at: index) ifNotNil: [^ anObject].
39 self at: index include: anObject.
45 HashedCollection method!
46 remove: anObject ifAbsent: aBlock
49 index := self find: anObject.
51 (array at: index) ifNil: [^ aBlock value].
53 self removeAtIndex: index.
61 find: anObject in: anArray
64 mask := anArray size - 1.
66 i := (anObject hash bitAnd: mask) + 1.
70 object := anArray at: i.
72 (object = anObject) | (object == nil)
75 i := (i + 106720 bitAnd: mask) + 1.