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"
|
:description "Extra transducers for Clojure"
|
||||||
:url "https://github.com/cgrand/xforms"
|
:url "https://github.com/cgrand/xforms"
|
||||||
:license {:name "Eclipse Public License"
|
:license {:name "Eclipse Public License"
|
||||||
|
|
|
||||||
|
|
@ -39,11 +39,11 @@
|
||||||
:else a))))
|
:else a))))
|
||||||
([#?(:clj ^java.util.Comparator comparator :cljs comparator) absolute-maximum]
|
([#?(:clj ^java.util.Comparator comparator :cljs comparator) absolute-maximum]
|
||||||
(fn
|
(fn
|
||||||
([] ::+∞)
|
([] ::+infinity)
|
||||||
([x] (if (#?(:clj identical? :cljs keyword-identical?) ::+∞ x)
|
([x] (if (#?(:clj identical? :cljs keyword-identical?) ::+infinity x)
|
||||||
absolute-maximum
|
absolute-maximum
|
||||||
x))
|
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
|
(defn maximum
|
||||||
([#?(:clj ^java.util.Comparator comparator :cljs comparator)]
|
([#?(:clj ^java.util.Comparator comparator :cljs comparator)]
|
||||||
|
|
@ -57,11 +57,11 @@
|
||||||
:else a))))
|
:else a))))
|
||||||
([#?(:clj ^java.util.Comparator comparator :cljs comparator) absolute-minimum]
|
([#?(:clj ^java.util.Comparator comparator :cljs comparator) absolute-minimum]
|
||||||
(fn
|
(fn
|
||||||
([] ::-∞)
|
([] ::-infinity)
|
||||||
([x] (if (#?(:clj identical? :cljs keyword-identical?) ::-∞ x)
|
([x] (if (#?(:clj identical? :cljs keyword-identical?) ::-infinity x)
|
||||||
absolute-minimum
|
absolute-minimum
|
||||||
x))
|
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))
|
(def min (minimum compare))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue