Merge pull request #28 from zmthy/rfs-reflection-warnings

Remove reflection warnings from min/max rfs
This commit is contained in:
Christophe Grand 2018-08-30 08:15:56 +00:00 committed by GitHub
commit 9e542d9d00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)