title: Julia: Assignment in Arrays
body: <p>When indexing more than one level for an array, it works fine. But when I used it to assign values, it did not. Does anyone know why <code>A</code> does not change below? </p>
  
  <pre><code>In  [4]: A = rand(6)
  
  Out [4]: 6-element Array{Float64,1}:
   0.111552
   0.155126
   0.78485 
   0.147477
   0.362078
   0.959022
  
  In  [5]: A[3:5][[true,false,true]]
  
  Out [5]: 2-element Array{Float64,1}:
   0.78485 
   0.362078
  
  In  [6]: A[3:5][[true,false,true]] = [99, 999]
  
  Out [6]: 2-element Array{Int64,1}:
    99
   999
  
  In  [7]: A
  
  Out [7]: 6-element Array{Float64,1}:
   0.111552
   0.155126
   0.78485 
   0.147477
   0.362078
   0.959022
  </code></pre>