Demo entry 6633751

abcd

   

Submitted by anonymous on Aug 05, 2017 at 13:21
Language: Ruby irb session. Code size: 139 Bytes.

$ irb
  2.2.1 :001 > hash = {a: 1, b:2}
    => {:a=>1, :b=>2} 
  2.2.1 :002 > hash[:a]
    => 1 
  2.2.1 :003 > hash["a"]
    => nil 

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).