Details
Description
This patch adds zero-arity versions of every-pred and some-fn with these semantics.
(every-pred) === (constantly true) (some-fn) === (constantly nil)
These variants are useful in situations like the following:
;; compute-preds-for may return zero or many predicate fns (let [preds (compute-preds-for something)] (filter (apply every-pred preds) some-coll))
This is the thread where Max Penet suggested to have 0-arity versions of the two fns:
https://groups.google.com/forum/?fromgroups=#!topic/clojure/IRlN-4LH_U0