title: How do I find the character count of each item in an array
body: <p>I'm writing a function that prints string values from a dictionary that have a character count over 8. Below is what I have so far, but I'm not sure how to formulate my where condition so that it looks at the number of characters in each string value in the array.</p>
  
  <pre><code>var stateCodes = ["NJ": "New Jersey", "CO": "Colorado", "WI": "Wisconsin", "OH": "Ohio"]
  
  func printLongState (_ dictionary: [String: String]) -&gt; (Array&lt;Any&gt;) {
  let fullStateNames = Array(stateCodes.values)
  
  for _ in fullStateNames where fullStateNames.count &gt; 8 {
      print(fullStateNames)
      return fullStateNames
  }
  
  return fullStateNames
  }
  
  printLongState(stateCodes)
  </code></pre>