title: Pattern matching an NSDictionary in an NSArray with Swift
body: <p>I have this code in a playground</p>
  
  <pre><code>import UIKit
  
  let anArray = NSArray(array:[["code": "LT","name": "Lithuania"], ["code": "ME","name": "Montenegro"], ["code": "ES","name": "Spain"]])
  
  let findCode = "ES"
  
  for object in anArray {
      if (object["code"] as String == findCode) {
          object["name"] as String
      }
  }
  </code></pre>
  
  <p>and I would like to simplify it in some way with patter matching, is that possible?</p>