iter.py 500 B

1234567891011121314
  1. #!/usr/bin/env python
  2. # encoding: utf-8
  3. import itertools
  4. #------------------------------------------------------------------------------
  5. # [ chain_iter method ] (iterable items of type contained in multiple list arguments)
  6. # Generator that returns iterable for each item in the multiple list arguments in sequence
  7. #------------------------------------------------------------------------------
  8. def chain_iter(self, *lists):
  9. return itertools.chain(*lists)
  10. if __name__ == '__main__':
  11. pass