Category: Collections-Sequenceable
Superclass: Object
I represent simple linked lists. Generally, I am not used by myself, but rather a subclass adds other instance variables that hold the information for each node, and I hold the glue that keeps them together.

Method category index

instance creation (class)
basic (instance)
iteration (instance)

instance creation (class)

nextLink: aLink
Create an instance with the given next link

top


basic (instance)

nextLink
Answer the next item in the list

nextLink: aLink

Set the next item in the list

top


iteration (instance)

at: index
Retrieve a node (instance of Link) that is at a distance of `index' after the receiver.

at: index put: object

This method should not be called for instances of this class.

do: aBlock

Evaluate aBlock for each element in the list

size

Answer the number of elements in the list. Warning: this is O(n)

top