title: How do I start a foreach loop at a particular index in scala?
body: <p>I am new to scala and was wondering as to how do I start a foreach loop at a particular index in scala? My code currently that looks something like this:    </p>
  
  <pre><code>var i = list.indexOf("three")
  for(n &lt;-list){
      /*do some operation*/
  }
  </code></pre>
  
  <p>Here the "list" holds a list of Strings ["one", "two", "three", "four", "five"]. Instead of starting from the begining of the list, I want my for each loop to start operation from the index i and ignore all the vaues before it (i.e only consider the values "four" and "five"). </p>
  
  <p>Can somebody please help me here? Thank you in advance</p>