fork download
  1. importPackage(java.io);
  2. importPackage(java.lang);
  3.  
  4. function makeFunc(s){
  5. return function(){
  6. print(s)
  7. }
  8. }
  9.  
  10. x = makeFunc("text")
  11.  
  12. x()
Success #stdin #stdout 0.39s 321920KB
stdin
Standard input is empty
stdout
text