Three minutes ago, 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.
It is, it's just not printing anything or doing anything else since its value is ignored. > How do I return/print both ? http://stackoverflow.com/questions/5839794/printing-multiple-statements-in-cond-in-racket/5839851#5839851 -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life! _________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

