symbolic_dynamics.utils.iset¶
-
class
symbolic_dynamics.utils.
iset
[source]¶ An immutable (and hashable) set.
This class is just a wrapper around
frozenset
with 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
copy
Return a shallow copy of a set.
difference
Return the difference of two or more sets as a new set.
intersection
Return the intersection of two sets as a new set.
isdisjoint
Return True if two sets have a null intersection.
issubset
Report whether another set contains this set.
issuperset
Report whether this set contains another set.
symmetric_difference
Return the symmetric difference of two sets as a new set.
union
Return 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.
copy
Return a shallow copy of a set.
difference
Return the difference of two or more sets as a new set.
intersection
Return the intersection of two sets as a new set.
isdisjoint
Return True if two sets have a null intersection.
issubset
Report whether another set contains this set.
issuperset
Report whether this set contains another set.
symmetric_difference
Return the symmetric difference of two sets as a new set.
union
Return the union of sets as a new set.
-