puts RUBY_VERSIONx = lambda{|v; x| x=2; v}p x.call(3) #3p x
Standard input is empty
1.9.3 3 #<Proc:0x8705be0@prog.rb:2 (lambda)>
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!