def distinct(iterable):
 seen = set()
 for item in iter(iterable):
  if (item not in seen):
   (yield item)
   seen.add(item)

def distinct ( iterable ) : seen = set ( ) for item in iter ( iterable ) : if ( item not in seen ) : ( yield item ) seen . add ( item )
yield all items in an iterable collection that are distinct .