You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
huri.core/rollup-transpose cannot be used because its arguments spec
is impossible to satisfy.
In rollup-transpose, the argument f has the spec (s/and ::summary-fn map?). However, here ::summary-fn never conforms to a
map and so the predicate is impossible to satisfy. Because rollup-transpose is instrumented, it cannot be used without explicit
unstrumenting beforehand.
(->> [{:x1, :y5} {:x2, :y4} {:x1, :y3}]
(rollup-transpose:x {:y-sum [sum :y]}))
; => ExceptionInfo Call to #'huri.core/rollup-transpose did not conform to spec ...
(stest/unstrument 'huri.core/rollup-transpose)
(->> [{:x1, :y5} {:x2, :y4} {:x1, :y3}]
(rollup-transpose:x {:y-sum [sum :y]}))
; => {:y-sum {1 8, 2 4}}
This is with Clojure 1.9.
The text was updated successfully, but these errors were encountered:
glts
linked a pull request
May 20, 2018
that will
close
this issue
huri.core/rollup-transpose
cannot be used because its arguments specis impossible to satisfy.
In
rollup-transpose
, the argumentf
has the spec(s/and ::summary-fn map?)
. However, here::summary-fn
never conforms to amap and so the predicate is impossible to satisfy. Because
rollup-transpose
is instrumented, it cannot be used without explicitunstrumenting beforehand.
This is with Clojure 1.9.
The text was updated successfully, but these errors were encountered: