Sets

This module contains functions for set operations

The functions in this module can be used to perform set operations on iterables before feeding them to the automata classes in the automata module. This simplifies the process of creating automata, since the user does not have to worry about the format of the iterables.

between(a: int, b: int) List[int]

Returns a list of integers between a and b, inclusive

between_char(a: str, b: str) List[str]

Returns a list of characters between a and b, inclusive

intersection(a: Iterable, *args: List) Set

Returns the intersection of all iterables

product(*args: List) Set

Returns the cartesian product of all iterables

union(*args: List) Set

Returns the union of all iterables