title: Detect if string contains any element of a string array
body: <p>How would I detect if a string contains any member of an array of strings (words)?</p>
  
  <p>Here is the array:</p>
  
  <pre><code>let str:String = "house near the beach"
   let wordGroups:[String] = ["beach","waterfront","with a water view","near ocean","close to water"]
  </code></pre>
  
  <p>The following is not compiling</p>
  
  <pre><code>let match:Bool = wordGroups.contains(where: str.contains)
  </code></pre>