Replies: 1 comment 2 replies
-
I can't say exactly what the problem is right now, but one potential issue I can see is that the goal In general, it's better to ground the logic variables as much as possible before recursing. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried writing a list length function, but when computing lists that have a given length, it errors out with
RecursionError: maximum recursion depth exceeded in comparison
. I tried using Zzz per #30 but am still getting a recursion depth error. Does anyone have advice on how to properly implement a list length function in miniKanren?Here's my code so far:
Beta Was this translation helpful? Give feedback.
All reactions