Replies: 1 comment 2 replies
-
I think I'll need a MWE/pseudo-code in order to understand the situation(s) sufficiently. |
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
-
Here's a super simple example problem that I run into but similar situations show up many times. Given a list of elements, create all subsets into a variable (to be used elsewhere) but not as a set of solutions. Other examples: permutations & combinations, products (stuff you might see in itertools).
Your typical minikanren examples solve these in a 'flat' way whereas I'm interested in 1-to-many relations. Or I may want to relatate particular elements in a list (so I need the full list evaluation).
Another way to think about this: if I'm able to query out what I expect, how do I collect those solutions and put them in a relation?
I don't know how to handle this! (Hope I've been able to communicate this problem).
Beta Was this translation helpful? Give feedback.
All reactions