[racket] Printing multiple stmts in cond

From: nikhil (nik.mis at gmail.com)
Date: Sat Apr 30 01:45:16 EDT 2011

Hi,

I am new to Racket so please bear with me. I am trying to print multiple
expressions in "cond" statement as below.

(let ((var `(make))

        (exp '(1 2)))

    (cond

      [(number? 2) `(hi ,var)

                              `(bye ,exp)]))


But only the "bye" statement is returned/printed on the screen. The first
"hi" is not evaluated at all. How do I return/print both ?

Thanks


Nik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20110430/e0c38d32/attachment.html>

Posted on the users mailing list.