Welcome! Please see the About page for a little more info on how this works.

0 votes
in Clojure by

I need to implement feature where I query tree structure searching for nodes.

The query could match different properties of the node, but here we focus on the path only.

I'm looking for idea how to implement xpath-like globs or something similar to datalog. Datalog queries would be totally fine, but I don't want to run full-blown db like datascript and I want my library to target both clj and cljs.

1 Answer

+1 vote
by

Hello,

If you care about selecting nodes in a deep tree structure by defining a complex path I think Specter is the right tool for the job.

...