2 ms·
That's an actual pattern match. Might as well use matchure ;) (use 'matchure) (defn-match factorial ([0] 1) ([?x] (* x (factorial (dec x)))))
by swannodette 17y ago
That's an actual pattern match. Might as well use matchure ;)
(use 'matchure)
(defn-match factorial
([0] 1)
([?x] (* x (factorial (dec x)))))