On Sat, 20 Jun 2009, Mukund Deshpande wrote:

> 
> Another query is a "def" or "a method as in java" automatically returns the
> value..(No need to give explicit return) "The value evaluated recently"..So
> once it returns a value How can it again evaluate max(3) ????
> I mean how can we have two returns.
> 
> thanks,
> SMS
> 

There is "no" return !

The answer again lies in understanding the Functional 
programming perspective.

 each function   is an expression, 
 each expression is evaluated,
 each evaluation is a value !

 function --> expression --> value.

So given a pattern match, the evaluated part of the function is
in effect the return value.

Does that help ?


thanks
Saifi.

Reply via email to