From g8z@yahoo.com  Sun May 14 04:46:18 2000
Received: from web805.mail.yahoo.com (web805.mail.yahoo.com [128.11.23.65])
	by swi.psy.uva.nl (8.9.3/8.9.3) with SMTP id EAA28925
	for <prolog@swi.psy.uva.nl>; Sun, 14 May 2000 04:46:18 +0200 (MET DST)
Received: (qmail 29946 invoked by uid 60001); 14 May 2000 02:46:31 -0000
Message-ID: <20000514024631.29945.qmail@web805.mail.yahoo.com>
Received: from [128.195.15.211] by web805.mail.yahoo.com; Sat, 13 May 2000 19:46:31 PDT
Date: Sat, 13 May 2000 19:46:31 -0700 (PDT)
From: Darren Gates <g8z@yahoo.com>
Subject: palindrome problem
To: prolog@swi.psy.uva.nl
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

hello,

I was wondering if anyone could assist with the following
problem:

I want to define the predicate palindrome(Base,Result), assuming
that Result is always even length list. For example,

palindrome([m,a,d],R). 

R = [m.a.d.d.a.m] ;


palindrome(B,[n,i,s,s,i,n]). 

B = [n,i,s] ;



__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/

