The class SeqStrData
defined in seq_str_data.py
allows for repetitive, single thread search of given strings in sequences of strings.
Objects of the class SeqStrData
are constructed based on an iterator gen_next_value
describing the input sequence.
The input sequence is assumed to be infinite, i.e. its __next__
method should not raise a StopIteration
exception.
The consecutive values obtained by calling next(gen_next_value)
are stored in a list inside SeqStrData
objects, therefore the input sequence should be deterministic.
The file example_seq_str_data.py
illustrates some basic usage of the class SeqStrData
and other related utilities.
The file test_seq_str_data.py
contains some basic tests against the OEIS data.