title: How to remove negative numbers from a Seq except the first negative number?
body: <p>How to remove all negative numbers from a sequence, except the first negative number. I'm not to sure how to keep the first negative number and then remove the other negative numbers.</p>
  
  <pre><code>def negativeNumbers(sequence: Iterable[Int]): Iterable[Int] = {
     sequence.filter(_ &gt; 0)
     return sequence
  }
  
  negativeNumbers(Seq(6, 2, -4, 7, 9, 10, -15, 8, -20))
  </code></pre>
  
  <p>after execution I should get Seq(6 , 2 , -4 , 7 , 9 , 10 , 8) </p>
  
  <p>Because -4 is the FIRST negative number which means it doesn't get remove, But the other negative numbers get removed.</p>