Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: A list based table join?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg112970] Re: A list based table join?
  • From: DC <b.gatessucks at gmail.com>
  • Date: Fri, 8 Oct 2010 04:50:16 -0400 (EDT)
  • References: <i8jteq$aco$1@smc.vnet.net>

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?