We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 085271c + 1b1adc8 commit 657bb9bCopy full SHA for 657bb9b
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