In Julia, how to merge a dictionary? : <p>What is the best way to merge a dictionary in Julia?</p>

<pre><code>&gt; dict1 = Dict("a" =&gt; 1, "b" =&gt; 2, "c" =&gt; 3)
&gt; dict2 = Dict("d" =&gt; 4, "e" =&gt; 5, "f" =&gt; 6)
# merge both dicts
&gt; dict3 = dict1 with dict2
&gt; dict3
Dict{ASCIIString,Int64} with 6 entries:
  "f" =&gt; 6
  "c" =&gt; 3
  "e" =&gt; 5
  "b" =&gt; 2
  "a" =&gt; 1
  "d" =&gt; 4
</code></pre>
