Created
May 1, 2014 09:07
-
-
Save murajun1978/067438da9380d186ac13 to your computer and use it in GitHub Desktop.
Rubyの配列 (Ruby Silver)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ary = Array.new(2, Hash.new) | |
ary =[0][:dog] = "pochi" | |
ary #=> ??? | |
ary = Array.new(2){Hash.new} | |
ary[0][:dog] = "pochi" | |
ary #=> ??? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment