You can return more than one by forming a list, or by using something like (values val-1 val-2 ...)
rac On Apr 29, 2011, at 11:45 PM, nikhil wrote: > 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 > > _________________________________________________ > For list-related administrative tasks: > http://lists.racket-lang.org/listinfo/users
_________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

