def setDifference( as, bs ):
    """returns a new set that is the difference of as and bs"""
    set = setEmpty()
    for a in as:
        if not member( a, bs ):
            set.append( a )
    return set
returns a new set that is the difference of as and bs
recipes/Python/355531_Simple_patternbased_string/recipe-355531.py