Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
h = [:] #Empty hash
|
||||
|
||||
h[:a] = 1 #Assign value
|
||||
h[:b] = [1 2 3] #Assign another value
|
||||
|
||||
h2 = [a: 1, b: [1 2 3], 10 : "ten"] #Initialized hash
|
||||
|
||||
h2[:b][2] #Returns 3
|
||||
Loading…
Add table
Add a link
Reference in a new issue