title: 'Use of extraneous &' in Swift
body: <p>I want to change a variable inside a dict that is itself inside a dict.</p>
  
  <p>My dict is called <code>words[]</code> and inside it I have four dicts.
  It is defined as such:</p>
  
  <pre><code>var words: [Int: [String: Any]] = [:];
  </code></pre>
  
  <p>And when adding variables to it, it is as such:</p>
  
  <pre><code>["order": Int]
  ["points": Int]
  ["used": Int]
  ["name": String]
  </code></pre>
  
  <p>Checking the variable works, but changing it (i.e. using <code>words[5]!["points"] += 5;</code>) gets me an error message <code>Use of extraneous '&amp;'</code>.
  This error does not appear if I were to define <code>words[]</code> as <code>var words: [Int: [String: Int]] = [:];</code> and omitting the "name"-string. So I think the problem lies somewhere in the use of <code>Any</code>.</p>
  
  <p>Any ideas as to why this occurs? Am I just missing something glaringly obvious as a newbie?</p>