borkdude
.Prior to 2.1.0, defnc and defnc- didn't properly handle the case when the body was solely a map, such as (defnc f [x] {:a 1})
. It mistakenly considered the map to be a pre/post-condition map.
Fixed bug where defnc- wasn't properly making function's var private.
Cond supports do
for a single-line side effect.
Cond supports when-some
(like when-let
but tests for non-nil).
Cond allows symbols as an alternative to keywords for let, when-let, when-some, when, and do.
Two new macros: defnc
and defnc-
are like defn
and defn-
with an implicit cond wrapped around the body.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close