object Main extends App { def square(m: Double) = m * m val sq = square _ println( sq( 4) ) }
Standard input is empty
16.0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!