🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.prolog
Article #2530

difference lists

#2530
From: Gerda Janssens
Date: Thu, 22 Jan 1987 11:51
7 lines
786 bytes
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.
Technical Details
Message-ID: <599@kulcs.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!mcvax!prlb2!kulcs!gerda

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!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