You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
500 B
15 lines
500 B
#!/usr/bin/env python
|
|
# encoding: utf-8
|
|
|
|
import itertools
|
|
|
|
#------------------------------------------------------------------------------
|
|
# [ chain_iter method ] (iterable items of type contained in multiple list arguments)
|
|
# Generator that returns iterable for each item in the multiple list arguments in sequence
|
|
#------------------------------------------------------------------------------
|
|
def chain_iter(self, *lists):
|
|
return itertools.chain(*lists)
|
|
|
|
if __name__ == '__main__':
|
|
pass
|