MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: A list based table join?


Try

Select[x, MemberQ[y, #[[1]]] &][[All, 2]]

-Francesco

On 10/07/2010 08:39 AM, Leo Ditolaghi wrote:
> x = {{"hello", 27},
> {"bye", 30},
> {"hello", 54},
> {"seeya", 100},
> {"hi", 9}}
>
> y = {"hello", "hi"}
>


  • Prev by Date: Re: A list based table join?
  • Next by Date: C-pointers from Mathematica
  • Previous by thread: Re: A list based table join?
  • Next by thread: Re: A list based table join?