code: def unique(iterable):
      
  
      yielded = set()
      for i in iterable:
          if i in yielded:
              continue
          yield i
          yielded.add(i)
docs: Generator yielding each element only once.
  
          Note: May consume lots of memory depending on the given iterable.