Skip to content

Instantly share code, notes, and snippets.

@krdlab
Created May 3, 2017 06:45
Show Gist options
  • Save krdlab/661de813a1cfcef9d5305a1208c0e826 to your computer and use it in GitHub Desktop.
Save krdlab/661de813a1cfcef9d5305a1208c0e826 to your computer and use it in GitHub Desktop.
((g, o, m) => m(g(), o, next = (acc) => m(acc + g(), o, next)))(() => ['ズン', 'ドコ'][Math.round(Math.random())], console.log, (acc, o, next) => /ズンズンズンズンドコ$/.test(acc) ? o(acc + 'きよし') : next(acc))
// g: generator
// o: output
// m: main function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment