I’m using: SWI-Prolog version 8.2
I have a multiway tree structure, and I was wondering what the prolog way is to reference internal nodes within the tree. I’m thinking of something like a key path, xpath, css selectors, or a lens (I haven’t directly used lenses, so I use it loosely here). I’d also like to have some sort of wildcard so that at certain levels you can match anything, and also possibly have a recursive wildcard (like
I was thinking it might be a meta predicate, with a list of goals that are used to recurse into the tree?
Does anything along these lines exist?