Finding eval unique values in a name column


#1

Hi,

How to have an output using eval for a unique values in a “name” calumn?

Data;
{:name=>“maria”, :name=>“lorie”, :name=>“maria”, :name=>“smith”,
:name=>“maria”}

{:name=>“maria”, :name=>“den”, :name=>“maria”, :name=>“smith”,
:name=>“ole”}

Output would be;
maria
lorie
smith
den
ole

Thanks in Advance!


#2

Hi,

Could you please elaborate on your question, also if your data is a
hash,
how come you can have same keys repeated again?

NAYAK

On Sat, Jan 10, 2009 at 2:12 PM, Ferdie Ferdie <
removed_email_address@domain.invalid> wrote:

{:name=>“maria”, :name=>“den”, :name=>“maria”, :name=>“smith”,

Thanks in Advance!

Posted via http://www.ruby-forum.com/.

  • NAYAK

#3

Vishwanath Nayak wrote:

Hi,

Could you please elaborate on your question, also if your data is a
hash,
how come you can have same keys repeated again?

NAYAK

On Sat, Jan 10, 2009 at 2:12 PM, Ferdie Ferdie <
removed_email_address@domain.invalid> wrote:

{:name=>“maria”, :name=>“den”, :name=>“maria”, :name=>“smith”,

Thanks in Advance!

Posted via http://www.ruby-forum.com/.

  • NAYAK

Hi Nayak,

You already have an answer to my previous post. Thank you for the helps.

Regards,
Ferdie