Finding eval unique values in a name column

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!

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 <
[email protected]> wrote:

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

Thanks in Advance!

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

  • NAYAK

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 <
[email protected]> 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs