Created
December 31, 2016 15:16
-
-
Save hinrik/f7ddc49b7d7b6a3cd465b0fd8e09e792 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
hash = {} of String => Hash(Int32, Int32) # | Hash(String, Hash(Int32, Int32)) | |
hash["foo"] = {} of Int32 => Int32 | |
hash["foo"][1] = 4 | |
#hash["bar"]["baz"] = {} of Int32 => Int32 | |
#hash["bar"]["baz"][1] = 4 | |
puts hash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment