944,181 Members | Top Members by Rank

Ad:
Nov 25th, 2006
0

Prolog permutation

Expand Post »
Hi guys, im working on writing a prolog permutation function. I know there's some snippets of code here and there on the net, but my permutation has to be in natural order, ie. [1,2,3] [1,3,2]. Regardless, I am just confused on the bindings of the variables. If the function is called

perm([1,2,3], Z).

How is Z being bound slowly to 1, [1,2], [1,2,3]?
I think my not being able to code the function is that mental block. I appreciate any help
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
s1337m is offline Offline
1 posts
since Nov 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Legacy and Other Languages Forum Timeline: Array of Matrix
Next Thread in Legacy and Other Languages Forum Timeline: Anyone familiar with Jess?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC