Bag documentation

# Bag

Bag inherits from Collection and defines the instance variable contents. It has no subclasses.

A Bag is an unordered, unkeyed collection of arbitrary objects.

## Methods defined in Bag:

### Methods for accessing:

- add: object
- add: object withOccurrences: occurrences
- at: key
- at: key put: value
- occurrencesOf: object
- remove: object ifAbsent: block
- size

### Methods for copying:

- postCopy

### Methods for enumerating:

- do: block

### Methods for initialization:

- initContents: dictionary

### Methods for predicates:

- includes: object

Pocket Smalltalk Documentation