Public Member Functions | |
def | __init__ |
def | __sub__ |
def | add |
def | difference |
def | update |
Naive and minimalist implementation of an ordered set
Definition at line 2 of file orderedset.py.
def wikidot::orderedset::OrderedSet::__init__ | ( | self, | |
iterable = None |
|||
) |
x.__init__(...) initializes x.
Definition at line 5 of file orderedset.py.
def wikidot::orderedset::OrderedSet::__sub__ | ( | self, | |
orderedset | |||
) |
x.__sub__(y) <==> x-y
Definition at line 10 of file orderedset.py.
def wikidot::orderedset::OrderedSet::add | ( | self, | |
item | |||
) |
Add an element to the ordered set
Definition at line 21 of file orderedset.py.
def wikidot::orderedset::OrderedSet::difference | ( | self, | |
orderedset | |||
) |
Return the difference of two ordered sets as a new ordered set.
Definition at line 27 of file orderedset.py.
def wikidot::orderedset::OrderedSet::update | ( | self, | |
iterable | |||
) |
Update an ordered set with the union of itself and another.
Definition at line 31 of file orderedset.py.