def setFromList( list ):
    """takes a list and returns a set by ignoring duplicates"""
    set = setEmpty()
    for a in list:
        setAdd( set, a )
    return set
takes a list and returns a set by ignoring duplicates
recipes/Python/355531_Simple_patternbased_string/recipe-355531.py