title: In Scala, how to get a slice of a list from nth element to the end of the list without knowing the length?
body: <p>I'm looking for an elegant way to get a slice of a list from element n onwards without having to specify the length of the list. Lets say we have a multiline string which I split into lines and then want to get a list of all lines from line 3 onwards:</p>
  
  <pre><code>string.split("\n").slice(3,X)       // But I don't know what X is...
  </code></pre>
  
  <p>What I'm really interested in here is whether there's a way to get hold of a reference of the list returned by the <code>split</code> call so that its length can be substituted into <code>X</code> at the time of the <code>slice</code> call, kind of like a fancy <code>_</code> (in which case it would read as <code>slice(3,_.length)</code>) ? In python one doesn't need to specify the last element of the slice. </p>
  
  <p>Of course I could solve this by using a temp variable after the split, or creating a helper function with a nice syntax, but I'm just curious.</p>