bar = lambda k: lambda m: k + m
def foo(i):

	yield from map(bar, range(i))

a, b, c = foo(3)
print(a(1), b(1), c(1))
