You will need:
This guide is based on Ubuntu, for other OS, use their package manager instead.
You will need:
This guide is based on Ubuntu, for other OS, use their package manager instead.
In your command-line run the following commands:
brew doctor
brew update
h1 = Hash.new # => {} | |
h2 = Hash.new("a") # => {} | |
h3 = {} # => {} | |
h4 = {abc: "def"} # => {:abc=>"def"} | |
h5 = {:abc => "def"} # => {:abc=>"def"} | |
h6 = {"abc" => "def"} # => {"abc"=>"def"} | |
h1["abc"] # => nil | |
h1.fetch("abc", "kitty") # => "kitty" |