<- Back | Index | Forward ->
Iterators
The toolkit provides two container types, streams and sequences. A
container is traversed via a single forward iterator.
Could encapsulate this behaviour in a new Python class,
Instead, convert streams and sequences to Python lists:
- Multiple random access iterators,
- Can copy the results of streams,
- Less "fragile,"
- Slower, but not by much.