Skip to content

Instantly share code, notes, and snippets.

@syuhei176
Last active July 15, 2016 21:19
Show Gist options
  • Save syuhei176/a79dba70feb5f9ed43b2396b2b27a5a8 to your computer and use it in GitHub Desktop.
Save syuhei176/a79dba70feb5f9ed43b2396b2b27a5a8 to your computer and use it in GitHub Desktop.
メッセージ: ひたすら前に進んで、うしろを振り返らず、失敗してもすぐに仕切りなおす。
const next = (x) => {
try{
next(x + 1);
}catch(e) {
setImmediate(()=>{next(x)});
}
}
next(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment