Skip to content

Instantly share code, notes, and snippets.

@rlucha
Created March 23, 2016 01:47
Show Gist options
  • Save rlucha/f52f99f72bc080e58d87 to your computer and use it in GitHub Desktop.
Save rlucha/f52f99f72bc080e58d87 to your computer and use it in GitHub Desktop.
function* naturalNumbers() {
let i = 0;
while(true) {
yield i++;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment