News for hackers. Stuff that matters.
Re:Matchure: Serious Clojure Pattern Matching by mnemonik on Tuesday April 27, 2010 @07:47PM (#1300222)
Thanks for the info, didn't know you could do that! What about the classic factorial, though?

  (defn factorial
    ([0] 1)
    ([x] (* x (factorial (- x 1)))))
Re:Matchure: Serious Clojure Pattern Matching by swannodette on Wednesday April 28, 2010 @12:06AM (#1300713)
That's an actual pattern match. Might as well use matchure ;)

  (use 'matchure)
  (defn-match factorial
    ([0] 1)
    ([?x] (* x (factorial (dec x)))))