# Set

Set inherits from Collection and defines the instance variable tally. It has no subclasses.

Sets are unordered collections of arbitrary objects. Keys are arranged by equality (=) and hashing (hash).

## Methods defined in Set:

### Methods for accessing:

- at: key
- at: key put: value
- capacity
- size

### Methods for adding/removing:

- add: object
- remove: object ifAbsent: exceptionBlock

### Methods for enumerating:

- do: block

### Methods for initialization:

- initialize

### Methods for predicates:

- includes: object

### Methods for private:

- expand
- expandBy: amount
- find: object ifAbsent: exceptionBlock
- findElementOrNil: object
- fixupAt: index
  Copy-up objects which hashed to the given slot, now that the slot is empty.

### Methods for utility:

- rehash

Pocket Smalltalk Documentation