fork download
  1. console.log(run(function*() {
  2. var a = yield [1, 2];
  3. var b = yield [1, 2];
  4. return a + b;
  5. })); // [2, 3, 3, 4]
  6.  
  7. main = print $ do
  8. a <- [1, 2]
  9. b <- [1, 2]
  10. return $ a + b
Runtime error #stdin #stdout #stderr 0.01s 4936KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
prog.js:1: SyntaxError: missing ( before formal parameters:
prog.js:1: console.log(run(function*() {
prog.js:1: ........................^