Tell HN: COND requires an even number of forms

1 points by c00p3r ↗ HN

  user=> (defn pascal [row col]
    (cond ((= col 0) 1)
          ((= col row) 1)
          (else (+ (pascal (- row 1) (- col 1))
                   (pascal (- row 1) col)))))
  IllegalArgumentException cond requires an even number of forms  clojure.core/cond (core.clj:540)
  user=>
You call THIS Lisp? ^_^

0 comments

[ 3.4 ms ] story [ 8.2 ms ] thread

No comments yet.