Public Member Functions
wikidot::orderedset::OrderedSet Class Reference

List of all members.

Public Member Functions

def __init__
def __sub__
def add
def difference
def update

Detailed Description

Naive and minimalist implementation of an ordered set

Definition at line 2 of file orderedset.py.


Constructor & Destructor Documentation

def wikidot::orderedset::OrderedSet::__init__ (   self,
  iterable = None 
)
x.__init__(...) initializes x.

Definition at line 5 of file orderedset.py.


Member Function Documentation

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.


The documentation for this class was generated from the following file:


aseba
Author(s): Stéphane Magnenat
autogenerated on Sun Oct 5 2014 23:46:40