> (cond > (even? a) a ;if a is even return a > (> a 7) (/ a 2) ;else if a is bigger than 7 return a/2 > (< a 5) (- a 1) ;else if a is smaller than 5 return a-1 > t 17)
I tend to write the condition and action on separate lines, and put a blank comment in between each, like this: (cond (even? a) ;if a is even return a a ;; (> a 7) ;else if a is bigger than 7 return a/2 (/ a 2) ;; (< a 5) ;else if a is smaller than 5 return a-1 (- a 1) ;; :else 17) just to keep emacs's indentation and cursor movement happy. -- Dave -- 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 Note that posts from new members are moderated - please be patient with your first post. 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