Newsgroups: comp.lang.prolog
Path: cantaloupe.srv.cs.cmu.edu!rochester!cornellcs!newsstand.cit.cornell.edu!portc01.blue.aol.com!newsxfer3.itd.umich.edu!howland.erols.net!news.bbnplanet.com!cam-news-hub1.bbnplanet.com!news.mathworks.com!EU.net!uknet!usenet1.news.uk.psi.net!uknet!uknet!strath-cs!liv!lucs!news
From: "D. Johnson" <u5dj@csc.liv.ac.uk>
Subject: Help with basics...
Sender: news@csc.liv.ac.uk (News Eater)
Message-ID: <32E74A3E.26C6@csc.liv.ac.uk>
Date: Thu, 23 Jan 1997 11:23:42 GMT
Lines: 18
X-Nntp-Posting-Host: u5dj@bollin.csc.liv.ac.uk
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
X-Mailer: Mozilla 3.01 (X11; I; HP-UX A.09.05 9000/720)
Organization: Computer Science, University of Liverpool, UK

Er hi.

Sorry about this, but I'm using prolog for the
first time, and I want to know about basic list
processing.

All I want to do is write a predicate that takes
a list as it's only parameter and will succeed
if (and only if) the list has two consective
elements which are equal.

I think it should basically look like this :

two_same(LIST):-SOMETHING GOES HERE ?

but I'm not really sure.

Thank you all in advance.
