Hi all,
look at the code:
scala> increase = (x: Int) => {
         println("We")
         println("are")
         println("here!")
         x + 1
       }
this is a function literal.It executes all the statements and returns the 
computation of the last statement.
Is there any way to stop it returning anything.
Thanks,
Rajkumar Goel    



      Explore and discover exciting holidays and getaways with Yahoo! India 
Travel http://in.travel.yahoo.com/

[Non-text portions of this message have been removed]

Reply via email to