Skip to content

Instantly share code, notes, and snippets.

@hinrik
Created December 31, 2016 15:16
Show Gist options
  • Save hinrik/f7ddc49b7d7b6a3cd465b0fd8e09e792 to your computer and use it in GitHub Desktop.
Save hinrik/f7ddc49b7d7b6a3cd465b0fd8e09e792 to your computer and use it in GitHub Desktop.
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