NEWB + list 
Author Message
 NEWB + list

Hi group,

I need to define the relation double(Xs, Ys) where Ys is the bouble Xs list

Example: double([a, b, c], [a, a, b, b, c, c ]) is true

can anyone help me......

Ty for ur help,
PM



Thu, 03 Jun 2004 01:51:55 GMT  
 NEWB + list
but it's evident !!

double([],[]).
double([X|L],[X,X|L2]):-double(L,L2).

Quote:

> Hi group,

> I need to define the relation double(Xs, Ys) where Ys is the bouble Xs list

> Example: double([a, b, c], [a, a, b, b, c, c ]) is true

> can anyone help me......

> Ty for ur help,
> PM



Thu, 03 Jun 2004 03:17:27 GMT  
 NEWB + list
Thank you for your help !

C ya



Thu, 03 Jun 2004 05:59:25 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Stupid newb question: What am I doing wrong?

2. Another newb question.

3. Newb question

4. Basic Newb Quesion

5. More newb questions (ROL,ROR etc.)

6. help with music - i'm a newb

7. NewB with a qustion

8. Newb - web portal for Unix tool

9. Hello Newb here

10. NewB PHP & mySQL Q

11. Web board in PHP & mySQL - NewB Q

12. newb Q

 

 
Powered by phpBB® Forum Software