Reply to comment

It took me a while to get this new-if working in clojure, but here’s what I came up with. Any suggestions?

(def new-if (fn [predicate then-clause else-clause]
(cond predicate then-clause
:else else-clause)))


  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <pre> <hr> <ul> <ol> <li> <dl> <dt> <dd> <img>
  • Lines and paragraphs break automatically.
  • Adds typographic refinements.

More information about formatting options