Sets Package for TCL
Current Version 1.2
Author: Evan Rempel erempel@UVic.CA
- ::set::null
    
- Return a null set. A set with no elements.
- ::set::create   list 
    
- return a set created from elements in list.
- ::set::list   Set 
    
- return a list of the set elements.
- ::set::add SetVar item
    
- Add item to the set SetVar.
 This is intended for rapid building of sets. It is much
        faster than set a [set::union $a $item]
- ::set::intersection Set1 Set2
    
- Return a set that contains all of the elements that are
        present in both Set1 and Set2.
- ::set::union Set1 Set2
    
- Return a set that contains all of the elements that are
        present in Set1 or in Set2.
- ::set::difference Set1 Set2
    
- Return a set comprised of elements that are not in
    both Set1 and Set2. Same as saying elements found only
    in one of the Set1 or Set2.
- ::set::subtract Set1 Set2
    
- Return a set comprised of all elements in Set1 that are
    not in Set2. Same as saying take all elements in Set2 out of
    Set1.
- ::set::isnull Set1
    
- Return true (1) if set S1 is empty, otherwise return false (0)
Revision History
    - Version 1.2 - Jan 4, 2001
    - Added the routinge set::list.
    
 
- Version 1.1 - Dec 18, 2000
    - The create routine did not ensure unique values in a set. Now fixed.
    
 
- Version 1.0 - Apr 21, 2000