Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!mcvax!prlb2!kulcs!gerda From: gerda@kulcs.UUCP (Gerda Janssens) Newsgroups: comp.lang.prolog Subject: difference lists Message-ID: <599@kulcs.UUCP> Date: Thu, 22-Jan-87 06:51:29 EST Article-I.D.: kulcs.599 Posted: Thu Jan 22 06:51:29 1987 Date-Received: Fri, 23-Jan-87 03:39:27 EST Reply-To: gerda@kulcs.UUCP (Gerda Janssens) Distribution: world Organization: Dep. of Computer Science, Katholieke Universiteit Leuven Lines: 7 Keywords: difference lists ,The Art of Prolog In 'The Art of Prolog' of Sterling and Shapiro at page 254. The program for flatten using enqueue and dequeue (Program 15.12) ?- flatten ([[a,b],c], _res) gives _res = [a,c,b] : the order is not preserved.