title: Finding the index of an element in a list scala
body: <p>How do I find the index of an element in a Scala list.</p>
  
  <pre><code>val ls = List("Mary", "had", "a", "little", "lamb")
  </code></pre>
  
  <p>I need to get 3 if I ask for the index of "little"</p>