[plt-scheme] Lambda in a list... am I doing something wrong?
I'm trying to write a little interactive fiction, and I have a setup like
this:
(define commands
'(
("look" (lambda () (display "test")))))
The response I get from trying ((cdr (car commands))):
procedure application: expected procedure, given: ((lambda () (display
"test"))) (no arguments)
Can someone explain to me what I am doing wrong?
-- Thanks,
--Timothy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20091019/c0e44816/attachment.html>