fork download
  1. bar = lambda k: lambda m: k + m
  2. def foo(i):
  3.  
  4. yield from map(bar, range(i))
  5.  
  6. a, b, c = foo(3)
  7. print(a(1), b(1), c(1))
  8.  
Success #stdin #stdout 0.02s 8736KB
stdin
Standard input is empty
stdout
1 2 3