Welcome! Please see the About page for a little more info on how this works.

0 votes
in Docs by

The documentation for cond doesn't explicitly mention that you can use :else (or any other keyword) to catch any values that don't match the previous conditions. While it is true that the documentation does say that a test will evaluate and return the value of logical true, it could be more helpful by pointing out that a keyword like :else will always be logical true.

I'm not 100% sure about whether this is necessary, but wanted to see what others thought and whether it would be helpful or not.

1 Answer

0 votes
Reference: https://clojure.atlassian.net/browse/CLJ-1704 (reported by desk@danielcompton.net)