[plt-scheme] Understanding lambda

From: Chongkai Zhu (czhu at cs.utah.edu)
Date: Fri Feb 13 15:14:03 EST 2009

aditya shukla wrote:
> I am trying to understand lambda and i have a question.
>
> Suppose (define f (lambda(x) (+(* 3 x) 5)))
>
> Now i have read and heard that lambda is used to define unnamed 
> functions now , i am confused about the value of f
> ie will it be equal to the function returned by (lambda(x) (+(* 3 x) 
> 5)) or will be equal to the value which is computed for any value of x 
> ie if x =1 then f =8.Any help is appreciated.
>

The first case, the function returned by (lambda(x) (+(* 3 x) 5)).

Chongkai

> Thanks in advance
>
> Aditya
>
> ------------------------------------------------------------------------
>
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>   



Posted on the users mailing list.