code: def skip_redundant(iterable, skipset=None):
      
      if skipset is None:
          skipset = set()
      for item in iterable:
          if item not in skipset:
              skipset.add(item)
              yield item
docs: Redundant items are repeated items or items in the original skipset.