Classes | Streams-Patterns-Events > Patterns > List > Indexing

Pfsm : ListPattern : Pattern : AbstractFunction : Object

Finite State Machine


Every state consists of an item and an array of integer indices of possible next states. The initial state is chosen at random from the array of entry states. That chosen state's item is returned, and the next state is chosen from its array of possible next states. When the end state is chosen, the stream ends.

Class Methods

Inherited class methods

Instance Methods

Inherited instance methods

Undocumented instance methods



[ entry states ],
item, [ next states ],
item, [ next states ],
end item (or nil), nil
next states: nil is terminal