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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Searching in a list

Status
Not open for further replies.

Bwec

Programmer
Nov 26, 2002
1
GB
Hi,

I am trying to write a predicate that given two lists, will succeed if at least one element from the first list is in the second.

I.E

A = [1,2,3,4,5]
B = [3,6,7,8,9]

Would succeed.

A = [1,2,3,4,5]
B = [7,6]

Would fail.

Thanks

Ben
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top