Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!fez!bend From: bend%fez@Sun.COM (George Bender) Newsgroups: comp.lang.prolog Subject: small prolog problem Keywords: 4 liner Message-ID: <53640@sun.uucp> Date: 18 May 88 01:45:22 GMT Sender: news@sun.uucp Lines: 20 Hi, I need a small prolog problem written to be inserted into a larger module. What this small program does is give all of the permutaions of a list of three symbols. Such as: called as: | ?- permu([a,b,c],X). solution: X = [a,b,c]; X = [a,c,b]; X = [b,a,c]; X = [b,c,a]; X = [c,a,b]; X = [c,b,a]; No. Any suggestions? Brian.