Fixed both versions of Iterator.iterate, which ...
Fixed both versions of Iterator.iterate, which ...

Fixed both versions of Iterator.iterate, which were a bit off, and gave
them type parameters.

  Before: Iterator.iterate(5, 10)(_ + 1) toList
  res0: List[Int] = List(6, 6, 6, 6, 6, 6, 6, 6, 6, 6)

  After: Iterator.iterate(5L)(_ + 1) take 10 toList

  res1: List[Long] = List(5, 6, 7, 8, 9, 10, 11, 12, 13, 14)

Also, I deprecated the two argument version because

  def iterate[T](start: T, len: Int)(f: T => T)
is identical to
  iterate(start)(f) take len


jvican/scala,lrytz/scala,shimib/scala,scala/scala,martijnhoekstra/scala,shimib/scala,jvican/scala,slothspot/scala,scala/scala,jvican/scala,lrytz/scala,shimib/scala,lrytz/scala,shimib/scala,jvican/scala,shimib/scala,felixmulder/scala,felixmulder/scala,slothspot/scala,scala/scala,slothspot/scala,scala/scala,felixmulder/scala,lrytz/scala,scala/scala,felixmulder/scala,slothspot/scala,martijnhoekstra/scala,martijnhoekstra/scala,shimib/scala,martijnhoekstra/scala,jvican/scala,lrytz/scala,lrytz/scala,slothspot/scala,martijnhoekstra/scala,felixmulder/scala,felixmulder/scala,jvican/scala,felixmulder/scala,slothspot/scala,slothspot/scala,scala/scala,martijnhoekstra/scala,jvican/scala