title: comparing == characters in scala
body: <p>I am trying to teach myself some scala. And I am stuck with something that seems arbitrary. I want to compare weather two characters are equal to each other. </p>
  
  <p><strong>True example</strong></p>
  
  <p>These return true as expected </p>
  
  <pre><code>"(" == "(" 
  "(".equals("(")
  </code></pre>
  
  <p><strong>What I want to check</strong> </p>
  
  <pre><code>"(an exampl(e))".toList(0)      // res : Char = (
  </code></pre>
  
  <p><strong>Somehow false</strong></p>
  
  <p>These return false</p>
  
  <pre><code>"(an exampl(e))".toList(0).equals("(")
  "(an exampl(e))".toList(0) == "("   
  "(an exampl(e))".toList.head == "("  
  </code></pre>
  
  <p>I think I am missing something here. Am I comparing the character value to a list pointer? If so, how can I check that the value of the item that I am pointing to is equal to <code>"("</code>? </p>