title: Swift filter dictionary error: Cannot assign a value of type '[(_, _)]' to a value of type '[_ : _]'
body: <p>I am trying to filter a dictionary in swift:</p>
  <pre><code>var data: [String: String] = [:]
  data = data.filter { $0.1 == &quot;Test&quot; }
  </code></pre>
  <p>the filter code above compiles under Swift 2 but yields the following error:</p>
  <blockquote>
  <p>Cannot assign a value of type '[(String, String)]' to a value of type '[String : String]'</p>
  </blockquote>
  <p>is this a bug in the Swift compiler or is this not the right way to filter dictionaries in Swift?</p>