All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scalapb.internal.compat.scala Maven / Gradle / Ivy

There is a newer version: 1.0.0-alpha.1
Show newest version
package scalapb.internal

import scala.collection.Factory

object compat {
  def convertTo[A, To](from: IterableOnce[A])(implicit f: Factory[A, To]): To = {
    from.iterator.to(f)
  }

  def toIterable[A](it: Iterator[A]): Iterable[A] = {
    it.to(Iterable)
  }

  val JavaConverters = scala.jdk.CollectionConverters
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy