Fork me on GitHub
#datascript
<
2021-09-08
>
John Conti16:09:28

Would not recursion rely on having all recursive traversals be of the same key, and hence the same arity?

az20:09:27

Thanks @U01L5R113AL I wasn’t sure if this was how it worked

az20:09:05

I thought maybe there was some type of recursion based on the fragment specified

az20:09:11

This makes sense though

John Conti20:09:09

Using a query, one can recur on multiple keys. The way this works is one defines a rule that picks the key to recur on:

[(ancestor ?child ?parent)
 (or [?child ?mother ?parent]
     [?child ?father ?parent])]

John Conti20:09:29

That is not a complete solution. But I cannot find my notes at the moment.