title: how to use string func startsWith to check on a list of strings instead of one?
body: <p>I have a list of names:</p>
  
  <pre><code>val listOfNames = List("john", "melanie", "maya", "jack")
  </code></pre>
  
  <p>and I have a string name full name:</p>
  
  <pre><code>val fullName = "john legend"
  </code></pre>
  
  <p>and now I want to use the string func <code>startsWith</code> and check if the full name starts with any of those names in the <code>listOfNames</code>, so how can I check it in one line?</p>
  
  <p>something like </p>
  
  <pre><code>if (fullName.startsWith(listOfNames)) {
     //do something
  }
  </code></pre>
  
  <p>thanks!!</p>