# ArrayedCollection

ArrayedCollection inherits from KeyedCollection and defines no instance variables. It has subclasses Array, ByteArray, Interval, List, and String.

ArrayedCollections have keys which are integers in the range 1..size.

## Methods defined in ArrayedCollection:

### Methods for accessing:

- atAllPut: value
- first
- indexOf: value
- indexOf: value ifAbsent: exceptionBlock
- keys
- last
- reversed
- size
- values

### Methods for comparing:

- shallowEquals: collection

### Methods for copying:

- , collection
  Concatenation. The result is always the same species as the receiver.
- copyFrom: start to: stop
- expandedBy: amount
  Answer a copy of the receiver with 'amount' additional slots.

### Methods for enumerating:

- allSatisfy: block
- anySatisfy: block
- collect: block
- detect: block ifNone: exceptionBlock
- do: block
- do: block separatedBy: betweenBlock
- inject: initial into: block
- keysAndValuesDo: block
- keysDo: block
- reverseDo: block
- select: block
- select: block do: action
- with: collection do: block

### Methods for error handling:

- outOfBounds: index

### Methods for predicates:

- identityIncludes: object
- includes: object
- includesKey: key
- isArrayed

### Methods for printing:

- printOn: stream

### Methods for streaming:

- readStream
- writeStream

Pocket Smalltalk Documentation