Skip to content

Instantly share code, notes, and snippets.

@awto
Last active February 20, 2018 19:07
Show Gist options
  • Select an option

  • Save awto/afaf08d9eabd39eb93bf9ca8b7d1c2cb to your computer and use it in GitHub Desktop.

Select an option

Save awto/afaf08d9eabd39eb93bf9ca8b7d1c2cb to your computer and use it in GitHub Desktop.
import * as M from "@effectful/es-rt/opts/defunct-inline";
function generator() {
var generator = M.generator();
generator.next = generator_1;
generator.$step = 0;
return generator;
}
function generator_1(p) {
switch (this.$step) {
case 0:
this.$step = 1;
return {value:1,done:false}
case 1:
this.$step = 2;
return {value:2,done:true}
case 2:
return {done:false}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment