I'm working on something like this, I'll definitely post a link to the gh here as soon as I'm finished
using macros I want to generate meander code that return transducers xD
This is something I want to. 🙂
why not write macros that write (macro based) meander code that would generate transducers functions? https://github.com/ribelo/danzig
Cool stuff man. 🙂
thx
(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"]
?This is a bug. I’ve figured out what is going on and will make a patch.