meander

All things about https://github.com/noprompt/meander Need help and no one responded? Feel free to ping @U5K8NTHEZ
2021-01-10T12:24:59.156Z

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?

2021-01-10T17:59:09.156400Z

@mac

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

2021-01-10T19:54:20.157Z

@huxley Cool, that looks straightforward.