Skip to content

Instantly share code, notes, and snippets.

Created March 11, 2014 02:51
Show Gist options
  • Save anonymous/9478633 to your computer and use it in GitHub Desktop.
Save anonymous/9478633 to your computer and use it in GitHub Desktop.
proc next[R](input: iterator(): R): R =
for v in input:
return v
iterator t: int {.closure.} =
yield 1
t.next
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment