Skip to content

Pattern: Pattern

Abstract superclass of all pattern generators.

Patterns are at the core of isobar. A Pattern implements the iterator protocol, representing a sequence of values which are iteratively returned by the next() method. A pattern may be finite, after which point it raises a StopIteration exception. Call reset() to return a pattern to its initial state. Patterns can be subject to standard arithmetic operators as expected.