[plt-scheme] Newbie Schemer question

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Wed Nov 6 09:49:46 EST 2002

Daniel CAUNE wrote:

>I would like to execute a function that has one of its variable defined
>outside this function, in an upper context. Suppose that I define a simple
>function such as:
>(define (f n)
>  (+ *p* n))
>I would like to write something like that (the following syntax is
>((let ((*p* 1))
>  (lambda ()
>    (f 2)))
>How should I formulate this in Scheme?

Do you know



The only reason I'm asking this question, is that you wrote newbie in 
the subject line.

Jens Axel Søgaard

Posted on the users mailing list.