title: Swift Reference to a Dictionary Key and Value Without Knowing Key
body: <p>I have an Array of Dictionaries defined as </p>
  
  <pre><code>var users = [[String:String]]() 
  </code></pre>
  
  <p>The Dictionary inside the array is a simple username + yes/no flag
       [[1stUser: Y], [2ndUser: N], [3rdUser: N]]</p>
  
  <p>In my TableView cell configuration, I defined</p>
  
  <pre><code>let userRecord = users[indexPath.row] as NSDictionary
  </code></pre>
  
  <p>and need to 
  assign cell.textlabel.text = username (the key of the dictionary)</p>
  
  <p>check flag (Y/N) and if Yes > cell.accessoryType = UITableViewCellAccessoryType.Checkmark</p>
  
  <p>In the example above, I should get a checkmark next to 1stUser only.</p>
  
  <p>The question is how to refer to the dictionary keys ('1stUser', '2nduser' etc.) without knowing them in advance and check values (Y/N)?  All the Swift dictionary examples I have seen assume we know the actual key to retrieve its value (e.g users["1stUser"] does not help as I do not know in advance that 1stUser has a Y).</p>