On Thu, Nov 29, 2012 at 11:58 PM, rekha meena <[email protected]> wrote:
> when we convert a hash to array.it takes one key value pair as a one
> argument
> and it gives the output as a key value pair..but if i give just index
> number and want output according to that it shows "nil" why???????

What "index number"?  A Hash is not indexed by number - unless you
specifically use numbers as keys.

> If it is working as an array then it should show me some value regarding
> the index number..
> Please correct me if i am wrong!!!!!!

A Hash is not working as an Array.  What do you mean?

Kind regards

robert

--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/

-- You received this message because you are subscribed to the Google Groups 
ruby-talk-google group. To post to this group, send email to 
[email protected]. To unsubscribe from this group, send email 
to [email protected]. For more options, visit this 
group at https://groups.google.com/d/forum/ruby-talk-google?hl=en

Reply via email to