title: Array to tuple in julia
body: <p>Newbie in julia, got quite confused.</p>
  
  <p>Here is an array:</p>
  
  <pre><code>array=["a","b",1]
  </code></pre>
  
  <p>I define a dictionary</p>
  
  <pre><code>dict=Dict()
  dict["a","b"]=1
  </code></pre>
  
  <p>I want to use 'array' to define the dict</p>
  
  <pre><code>dict2 = Dict()
  dict2[array[1:2]]=1
  </code></pre>
  
  <p>but they are not the same,</p>
  
  <pre><code>julia&gt; dict
  Dict{Any,Any} with 1 entry:
    ("a","b") =&gt; 1
  
  julia&gt; dict2
  Dict{Any,Any} with 1 entry:
    Any["a","b"] =&gt; 1
  </code></pre>
  
  <p>How can I use 'array' to generate 'dict' instead of 'dict2'? Thanks</p>