meander

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

I'm working on something like this, I'll definitely post a link to the gh here as soon as I'm finished

2021-05-01T00:06:48.192100Z

using macros I want to generate meander code that return transducers xD

noprompt 2021-05-01T02:33:05.192300Z

This is something I want to. 🙂

2021-05-01T14:05:40.192800Z

why not write macros that write (macro based) meander code that would generate transducers functions? https://github.com/ribelo/danzig

1👍1🤯
noprompt 2021-05-03T19:57:19.194300Z

Cool stuff man. 🙂

2021-05-03T21:19:44.194500Z

thx

2021-05-01T17:06:58.193500Z

(let [db {:db/id {:ivan  {:name   "Ivan"
                          :friend [:db/id :petr]}
                  :petr  {:name   "Petr"
                          :friend [[:db/id :smith] [:db/id :ivan]]}
                  :smith {:name   "Smith"
                          :friend [:db/id :petr]}}}]

  (m/search db
    {_ {?e {:name "Ivan"
            :friend (m/or (m/scan [?t ?f]) [?t ?f])}
        ?f {:name ?name}}}
    [?t ?f ?name]))
;; => ([:db/id :petr "Petr"] [:db/id :smith "Smith"])
shouldn't the returned result be [:db/id :petr "Petr"]?

1🪲
noprompt 2021-05-03T19:54:55.193900Z

This is a bug. I’ve figured out what is going on and will make a patch.

1👍