# Hash literal
h0 = {'uno' => 1, 'dos' => 2}
h0['uno'] # 1
# Emplenant un hash
h1 = Hash.new # {}
h1['joya'] = 'ruby'
h1['fruta'] = 'banana'
h1 # {"joya"=>"ruby", "fruta" => "banana"}
# Sovint, els simbols s'usen com claus
h2 = {:junio => 'perl', :julio => 'ruby'}
h2[:julio] # ruby