I would do this:
def walk(samples):
for d in range(samples):
yield d
def walk200():
for d in walk(200):
yield d
But actually what I want is this, to make the code shorter:
def walk200():
reyield walk(200)
How do I do reyield
?