We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 085271c commit 1b1adc8Copy full SHA for 1b1adc8
1 file changed
src/postmortem/xforms.cljc
@@ -71,7 +71,7 @@
71
(do (vreset! prev v)
72
(rf acc input)))))))))
73
74
-(defn- abs ^double [^double x]
+(defn- abs* ^double [^double x]
75
#?(:clj (Math/abs x)
76
:cljs (js/Math.abs x)))
77
@@ -87,7 +87,7 @@
87
(let [p @prev
88
v (f input)]
89
(if (or (= p ::none)
90
- (>= (abs (- v p)) interval))
+ (>= (abs* (- v p)) interval))
91
92
(rf acc input))
93
acc))))))))
0 commit comments