is there a way to debug what specter is doing? I'm facing a bug and I'm having trouble following specter navigations...
@lidorcg you can use something like this to see what's going on:
(defnav SPY-NAV
[]
(select* [_this structure next-fn]
(println "SPY" structure)
(next-fn structure))
(transform* [_this structure next-fn]
(println "SPY" structure)
(next-fn structure)))I have something like this. Is there a way to understand next-fn? It's going somewhere that baffles me
next-fn invokes the rest of the path
so if your path is [:a SPY-NAV ALL MAP-VALS], then next-fn will be [ALL MAP-VALS]