On Feb 25, 10:19 pm, glow <glo...@gmail.com> wrote:
> Hi everyone!
> I am currently learning Lisp and Clojure. A few days ago i read how
> "if" in Arc works and I wonder why it is not the same in Clojure:
> (if a b       ; if a then b
>     c d       ; elseif c then d
>       e)      ; else e.

(cond
   pred1 form1
   pred2 form2
   :else  form3)

seems pretty good to me.  I prefer that to the Arc code above.

Gavin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to