user=> (map #(when-not (= %2 %3) [%1 %2 %3]) (iterate inc 0) [:a :b :c] [:a :a :a]) (nil [1 :b :a] [2 :c :a])
;; See examples for "if" explaining Clojure's idea of logical true ;; and logical false.
Evaluates test. If logical true, evaluates body in an implicit do.
bindings => binding-form test When test is true, evaluates body wi
Please see http://clojure.org/special_forms#if
(defmacro when-not "Evaluates test. If logical false, evaluates body in an implicit do." {:added "1.0"} [test & body] (list 'if test nil (cons 'do body)))
Comments top
No comments for when-not. Log in to add a comment.