title: Set objects to empty NSDictionary in Swift
body: <p>I can create an NSDictionary </p>
  
  <pre><code>    var namesDictionary=Dictionary&lt;String,String&gt;()
      namesDictionary["Jacob"] = "Marry"
  </code></pre>
  
  <p>But, when I create a empty dictionary like coded below, line 1 i okie, but line 2 (adding values) throws an error.</p>
  
  <pre><code>    var namesDictionary =[:]
      namesDictionary["Jacob"] = "Marry"
  </code></pre>
  
  <p>Error is "Cannot assign to the result of this expression". Is there any other way to assign the values.</p>