def compact(sequence):
   """
   Returns list of objects in sequence sans duplicates, where
    s1 = (1, 1, (1,), (1,), [1], [1], None, '', 0)
    compact(s1) == [[1], 1, 0, (1,), None, '']
   """
   result = []
   dict_ = {}
   result_append = result.append

   for i in sequence:
      try:
         dict_[i] = 1
      except:
         if i not in result:
            result_append(i)

   result.extend(dict_.keys())

   return result

   Returns list of objects in sequence sans duplicates, where
    s1 = (1, 1, (1,), (1,), [1], [1], None, '', 0)
    compact(s1) == [[1], 1, 0, (1,), None, '']
   
recipes/Python/138982_Intersectiunivaried_form/recipe-138982.py