From: Daniel CAUNE (d.caune at wanadoo.fr) Date: Wed Nov 6 16:38:06 EST 2002 |
|
Hi all, 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 incorrect): ((let ((*p* 1)) (lambda () (f 2))) How should I formulate this in Scheme? Thanks! -- Daniel "Cang ngay cang thay minh do."
Posted on the users mailing list. |
|