title: How to create a predicate to filter array of enums with associated values in Swift?
body: <pre><code>enum EnumType {
      case WithString(String)
  }
  
  var enums = [EnumType]()
  
  enums.append(EnumType.WithString("A"))
  enums.append(EnumType.WithString("B"))
  enums.append(EnumType.WithString("C"))
  enums.append(EnumType.WithString("D"))
  enums.append(EnumType.WithString("E"))
  enums.append(EnumType.WithString("F"))
  </code></pre>
  
  <p>How to filter my <code>enums</code> array to find the one with associated value equal <code>C</code>. What <strong>predicate</strong> do I need to use?</p>