foo = lambda { |x| puts x } foo.call('Hello, World!')foo['You can index me too!']
Standard input is empty
Hello, World! You can index me too!
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!