rename any? to avoid conflict with clojure 1.9

This commit is contained in:
Nathan Marz 2016-09-07 07:54:10 -04:00
parent 2673004b5b
commit 6a5d0f7560

View file

@ -527,7 +527,7 @@
(with-meta ret (meta structure)) (with-meta ret (meta structure))
ret)))) ret))))
(defn any? (defn any-pred?
"Accepts any number of predicates that take in one input and returns a new predicate that returns true if any of them are true" "Accepts any number of predicates that take in one input and returns a new predicate that returns true if any of them are true"
[& preds] [& preds]
(fn [obj] (fn [obj]
@ -544,7 +544,7 @@
(eval `(let [~@lv] ~body))))) (eval `(let [~@lv] ~body)))))
(let [embeddable? (any? number? (let [embeddable? (any-pred? number?
symbol? symbol?
keyword? keyword?
string? string?