Fork me on GitHub
#meander
<
2021-01-10
>
mac12:01:59

Are there any examples of how to use finder , searcher and rewriter ? I looked at the tests but I wasn't able to glean much from that. I am looking for a way to pass a data structure, and two patterns (input and rewrite) to a function and have them applied to the data structure. I believe this should be possible now, right?

ribelo17:01:09

@mac

(let [q {:x '?x}
      f (mi/finder
         q '?x)]
  (f {:x 1}))
;; => 1

mac19:01:20

@huxley Cool, that looks straightforward.