This is nice and primitively like DBN was … LOLOL. I love it! It’s made by Luke Haas — it’s brilliant! —JM
function* foo() {
let x = yield 'What is x?';
let y = yield 'What is y?';
return x + y
}
let genFoo = foo();
genFoo.next();
genFoo.next(8);
genFoo.next(17);

You must be logged in to post a comment.