Skip to content

Instantly share code, notes, and snippets.

@skkim7821
Created December 22, 2015 10:30
Show Gist options
  • Save skkim7821/e67027657afcf94bef61 to your computer and use it in GitHub Desktop.
Save skkim7821/e67027657afcf94bef61 to your computer and use it in GitHub Desktop.
function *foo() {
yield 1;
yield 2;
yield 3;
}
function *boo() {
yield 4;
yield 5;
yield 6;
}
function *assoc() {
yield *foo();
yield *boo();
}
var it = assoc();
for (let v of assoc() ){
console.log(v);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment