Created
September 15, 2014 14:34
-
-
Save IanWhitney/8f9107c6a7e764aee6fa to your computer and use it in GitHub Desktop.
Hash creation with default empty array
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
x = Hash.new{|h,k| h[k] = []} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment