def list_distinct(l):
    """Return a the distinct version of the input list, perserve order
    """
    uniq_list = []
    seen = set()
    for x in l:
        if x not in seen:
            seen.add(x)
            uniq_list.append(x)
    return uniq_list