[plt-scheme] Lambda in a list... am I doing something wrong?

From: Timothy McDowell (tmcdowell at gmail.com)
Date: Mon Oct 19 19:43:25 EDT 2009

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>

Posted on the users mailing list.