Remove reflection warnings from min/max rfs
This commit is contained in:
parent
545b97ddf8
commit
521e08b547
1 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@
|
||||||
:else 0))))
|
:else 0))))
|
||||||
|
|
||||||
(defn minimum
|
(defn minimum
|
||||||
([comparator]
|
([#?(:clj ^java.util.Comparator comparator :cljs comparator)]
|
||||||
(fn
|
(fn
|
||||||
([] nil)
|
([] nil)
|
||||||
([x] x)
|
([x] x)
|
||||||
|
|
@ -46,7 +46,7 @@
|
||||||
([a b] (if (or (#?(:clj identical? :cljs keyword-identical?) ::+∞ a) (pos? (#?(:clj .compare :cljs cmp) comparator a b))) b a)))))
|
([a b] (if (or (#?(:clj identical? :cljs keyword-identical?) ::+∞ a) (pos? (#?(:clj .compare :cljs cmp) comparator a b))) b a)))))
|
||||||
|
|
||||||
(defn maximum
|
(defn maximum
|
||||||
([comparator]
|
([#?(:clj ^java.util.Comparator comparator :cljs comparator)]
|
||||||
(fn
|
(fn
|
||||||
([] nil)
|
([] nil)
|
||||||
([x] x)
|
([x] x)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue