I am trying to thread MemberQ through a list, i.e.:
I have
a={{1, 9}, {2, 5}, {3, 1}, {4, 3}};
b= {1, 5, 2, 6};
Ideally I would like to have a threaded and listable MemberQ function TLMemberQ to do the following:
TLMember[a,b] to return {True,True,False,False}. How can I do that in a way that execute fastest.
Note: Neither Thread@MemberQ nor MemberQ@Thread work. MemberQ attributes is Protected
MapThread[MemberQ, {a, b}]? - Heike