[plt-scheme] Lambda in a list
Hi!
I am stuck on a problem.
I am trying to create a list where two of the elements are lambda
expressions? Some thing like "'("an-item" 12 a-lambda-expr
another-lambda-expr)".
Here is how I am defining it.
(define a-thing
(list
"an-item"
12
(lambda (x y) (+ x y))
(lambda (x y) (- x y))
)
)
What I want to do with this construct is to retrieve the third item
from a-thing, and the execute it with two arguments. This is
obvously not working, could anybody please tell me why?
Best Regards!
/Daniel Patrickson
_____________________________________
Patricio Daniel Patrickson
http://ppatrickson.servehttp.com
tel:0739848646