macro | removed v1.9.183 | added v1.9.14 | Edit |
(unstrument v)
Undoes instrument on the var at v, a var or symbol. Idempotent.
(defmacro unstrument
[v]
(let [v (if-not (seq? v) (list 'var v) v)
sym (second v)]
`(do
(when-let [raw# (cljs.spec/unstrument* ~v)]
(set! ~sym raw#))
~v)))