symbolic_dynamics.utils.iset¶
-
class
symbolic_dynamics.utils.iset[source]¶ An immutable (and hashable) set.
This class is just a wrapper around
frozensetwith a shorter name and modifying__repr__()to look likeset.__repr__().Examples
>>> s = iset([1,2]) >>> d = {s: 3} >>> d {{1, 2}: 3} >>> d[s] 3
Methods
copyReturn a shallow copy of a set.
differenceReturn the difference of two or more sets as a new set.
intersectionReturn the intersection of two sets as a new set.
isdisjointReturn True if two sets have a null intersection.
issubsetReport whether another set contains this set.
issupersetReport whether this set contains another set.
symmetric_differenceReturn the symmetric difference of two sets as a new set.
unionReturn the union of sets as a new set.
-
__init__(*args, **kwargs)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(*args, **kwargs)Initialize self.
copyReturn a shallow copy of a set.
differenceReturn the difference of two or more sets as a new set.
intersectionReturn the intersection of two sets as a new set.
isdisjointReturn True if two sets have a null intersection.
issubsetReport whether another set contains this set.
issupersetReport whether this set contains another set.
symmetric_differenceReturn the symmetric difference of two sets as a new set.
unionReturn the union of sets as a new set.
-