I need to create the predicate which would turn the function to an array of permutations.
-? perm(a(b(c)),T).
should return:
T=[a,b,c]
T=[b,c,a]
T=[b,a,c]. etc.
Can someone help me.....
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.