Skip to content

Instantly share code, notes, and snippets.

@skatenerd
Created July 17, 2015 03:40
Show Gist options
  • Save skatenerd/5ccfb35e5af660d438a8 to your computer and use it in GitHub Desktop.
Save skatenerd/5ccfb35e5af660d438a8 to your computer and use it in GitHub Desktop.
continuations?
def thing(n):
if n < 10:
thing(n+1)
yield(n)
for x in thing(0):
print x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment