Article View: comp.lang.prolog
Article #3382small prolog problem
From: George Bender
Date: Wed, 18 May 1988 01:45
Date: Wed, 18 May 1988 01:45
20 lines
655 bytes
655 bytes
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.
Technical Details
Message-ID:
<53640@sun.uucp>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!seismo!sundc!pitstop!sun!fez!bendShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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