My function creates a chain of generators:
def bar(num): import itertools some_sequence = (x*1.5 for x in range(num)) some_other_sequence = (x*2.6 fo
def reversed2(iter): return reversed(list(iter))