We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dc787e commit 663e71eCopy full SHA for 663e71e
src/main/cljs/cljs/core.cljs
@@ -2813,7 +2813,8 @@ reduces them without incurring seq initialization"
2813
(cond
2814
(NaN? x) x
2815
(NaN? y) y
2816
- :else (cljs.core/max x y)))
+ (> x y) x
2817
+ :else y))
2818
([x y & more]
2819
(reduce max (cljs.core/max x y) more)))
2820
@@ -2824,7 +2825,8 @@ reduces them without incurring seq initialization"
2824
2825
2826
2827
- :else (cljs.core/min x y)))
2828
+ (< x y) x
2829
2830
2831
(reduce min (cljs.core/min x y) more)))
2832
0 commit comments