datascript

John Conti 2021-09-08T16:52:28.013600Z

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

az 2021-09-08T20:07:27.014300Z

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

az 2021-09-08T20:08:05.015200Z

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

az 2021-09-08T20:08:11.015600Z

This makes sense though

John Conti 2021-09-08T20:26:09.015800Z

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 Conti 2021-09-08T20:27:29.016100Z

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