Si es un chiste está bueno, si no esta línea esta mal

irb(main):003:0> h[2][1] = 1


Lucas.

2008/12/6 César <[EMAIL PROTECTED]>:
> Yo hice esta prueba que sigue con el siguiente resultado
>
> cesar:~$ irb1.8
> irb(main):001:0> h = Hash.new({})
> => {}
> irb(main):002:0> h[1][1] = 1
> => 1
> irb(main):003:0> h[2][1] = 1
> => 1
> irb(main):004:0> p h[1][1]
> 1
> => nil
>
>
> --
> _______________________________________________
> http://www.sindominio.net/ayuda/preguntas-inteligentes.html
> http://cronopios.net/Traducciones/trolls.es.html
> Gnu/Linux count user #416024
>
> Pagina personal : http://www.cesardiaz.com.ar
> Mi blog : http://cesarediaz.blogspot.com
> Skype: cesarstafe
> _______________________________________________
> Ruby mailing list
> [email protected]
> http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar
>
_______________________________________________
Ruby mailing list
[email protected]
http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar

Responder a