mudgen
9/24/2013 - 3:41 PM

Unique List

Unique List

def unique(items):
    found = set()
    keep = []
    for item in items:
        if item not in found:
            found.add(item)
            keep.append(item)
    return keep