Report abuse

# put this in a file and run it, doesn't work in irb

rails = lambda {|foo| puts; foo}.call(callcc {|cc| cc })

rails2 = lambda {|foo| print "*"; foo}.call(callcc {|cc| cc })

rails[rails2]