utils icon indicating copy to clipboard operation
utils copied to clipboard

typo in cond?

Open glchapman opened this issue 11 years ago • 0 comments

Given the documentation that cond with an odd number of clauses treats the last as the default, I expected the following to evaluate to 1:

Clojure 1.5.1
user=> (require '[net.cgrand.utils :as u])
nil
user=> (u/cond 1)
#<core$test clojure.core$test@62ccf439>

Instead, as you see, it returns a reference to clojure.core/test.

It looks to me like the reference to test in the cond macro should actually be op .

glchapman avatar Mar 31 '13 20:03 glchapman