Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lists with 2 mutual elements

Status
Not open for further replies.

Zach1986

Programmer
Jan 11, 2011
4
GR
Hello,
very interesting forum.
I want to solve a program with 2 lists which return
true if have 2 exactly mutual elements.

Thank you for help
 
for example
?- lists([a,b,c,d,e],[a,b,c,d,e]).
false


?- lists([a,b,c,d,e],[h,b,f,c,3]).
true
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top