Well, I have this example:
mylist = [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [0, 1, 2, 3, 4,
You should probably use generators for the inner lists as well, if you are trying to get the process to scale :
g = lambda k: (k[i] for i in range(5)) for x in mylist: yield g(x)