fix #31 -- but should be fixed on the CLJS side
This commit is contained in:
parent
00fae8ede4
commit
9808cc8555
2 changed files with 7 additions and 7 deletions
|
|
@ -1,4 +1,4 @@
|
|||
(defproject net.cgrand/xforms "0.19.0"
|
||||
(defproject net.cgrand/xforms "0.19.1"
|
||||
:description "Extra transducers for Clojure"
|
||||
:url "https://github.com/cgrand/xforms"
|
||||
:license {:name "Eclipse Public License"
|
||||
|
|
|
|||
|
|
@ -39,11 +39,11 @@
|
|||
:else a))))
|
||||
([#?(:clj ^java.util.Comparator comparator :cljs comparator) absolute-maximum]
|
||||
(fn
|
||||
([] ::+∞)
|
||||
([x] (if (#?(:clj identical? :cljs keyword-identical?) ::+∞ x)
|
||||
([] ::+infinity)
|
||||
([x] (if (#?(:clj identical? :cljs keyword-identical?) ::+infinity x)
|
||||
absolute-maximum
|
||||
x))
|
||||
([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?) ::+infinity a) (pos? (#?(:clj .compare :cljs cmp) comparator a b))) b a)))))
|
||||
|
||||
(defn maximum
|
||||
([#?(:clj ^java.util.Comparator comparator :cljs comparator)]
|
||||
|
|
@ -57,11 +57,11 @@
|
|||
:else a))))
|
||||
([#?(:clj ^java.util.Comparator comparator :cljs comparator) absolute-minimum]
|
||||
(fn
|
||||
([] ::-∞)
|
||||
([x] (if (#?(:clj identical? :cljs keyword-identical?) ::-∞ x)
|
||||
([] ::-infinity)
|
||||
([x] (if (#?(:clj identical? :cljs keyword-identical?) ::-infinity x)
|
||||
absolute-minimum
|
||||
x))
|
||||
([a b] (if (or (#?(:clj identical? :cljs keyword-identical?) ::-∞ a) (neg? (#?(:clj .compare :cljs cmp) comparator a b))) b a)))))
|
||||
([a b] (if (or (#?(:clj identical? :cljs keyword-identical?) ::-infinity a) (neg? (#?(:clj .compare :cljs cmp) comparator a b))) b a)))))
|
||||
|
||||
(def min (minimum compare))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue