def get_set_of_list_and_keep_sequence(list):
    """ Returns the set of the specified list but keeps the sequence of the items."""
    seen = set()
    return [x for x in list if not (x in seen or seen.add(x))]