title: How to iterate twice using iterator method in scala
body: <pre><code>// iteratorFunc is Iterable[SomeClass]
  val iterator1 = iteratorFunc.iterator
  
  iterator1 foreach {
      ...
  }
  
  
  val iterator2 = iteratorFunc.iterator
  
  iterator2 foreach {
     ...
  }
  </code></pre>
  
  <p>The code inside <code>iterator1 foreach</code> is successfully done. But, iterator2 gives empty iterator. </p>
  
  <p>Please help.</p>