davincicoders/ruby_koans_nhic0tine — pull request #6 by nhic0tine (2013-07-31 05:44:07+00:00)
Title: about_hashes

*hashes can be created using {}
*no keys will equal nil
*use fetch when hash is too big and you want
to find specific key
*unable to answer reasoning - ask in class
# Bonus Question: Why was "expected" broken out
into a variable
# rather than used as a literal?
*order does not matter in bases using keys
*hash are apart of array class
*you can search for both keys and values using
.include method
*combining bases will replace designated symbols
*you can set a default value for hash but also
chose which one you want to be different
*using brackets in hash will set all keys to same
values, which can increase because your just
adding to array
*inserting a block for default value will let you
have separate values to each array(value) /
symbol

[#54245583]