fork download
  1. # your code goes here
  2. def foo
  3. return yield
  4. end
  5.  
  6. print foo{ "Hello." }
Success #stdin #stdout 0.01s 7452KB
stdin
Standard input is empty
stdout
Hello.