title: Dictionary append not working in Swift
body: <p>Why is <code>append(data)</code> not working?</p>
  
  <pre><code>import Foundation
  
  //This is working.
  let tablelist:[String: String] = [
      "red1": "manu1",
      "blue1": "chelsea1",
      "yellow1": "dort1",
      "green1": "nakamura1",
      "purple1": "real1"
  ]
  
  var resulttablelist = [String: String]()
  
  resulttablelist = tablelist
  
  resulttablelist.removeAll()
  
  for data in tablelist {
  if data.value.contains("manu1") {
  
      //This append(data) not working. I have an error. I need your help.
      var resulttablelist = [String: String]()
      resulttablelist.append(data)
  
      print(resulttablelist)
      }
  }
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>//Error!! value of type '[String : String]' has no member 'append' 
  </code></pre>
  
  <p>This sample code is working.</p>
  
  <pre><code>for data in tablelist {
  if data.value.contains("manu1") {
      print(data)
      }
  }
  </code></pre>
  
  <p>Will print:</p>
  
  <pre><code>(key: "red1", value: "manu1")
  </code></pre>