title: Print first element in list using Scala
body: <p>How can I print the first element in list using Scala?</p>
  
  <p>For example in Python I can just write:</p>
  
  <pre><code>&gt;&gt;&gt;l = [1,2,3,4]
  &gt;&gt;&gt;one = l[0]
  &gt;&gt;&gt;print one
  </code></pre>
  
  <p>How can I do that on Scala</p>
  
  <p>Thanks.</p>