home *** CD-ROM | disk | FTP | other *** search
- ent: [ ^ exceptionBlock value].
- (1 = i) ifTrue: [dict removeKey: oldElement]
- ifFalse: [dict at: oldElement put: i - 1 ]
-
- | size
- ^ dict inject: 0 into: [:x :y | x + y]
-
- | occurrencesOf: anElement
- ^ dict at: anElement ifAbsent: [0]
-
- | first
- (count <- dict first) isNil ifTrue: [^ nil].
- count <- count - 1.
- ^ dict currentKey
-
- | next
- [count notNil]