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

.spire_2.13.0-RC1.0.16.2.source-code.package.scala Maven / Gradle / Ivy

package spire
package object scalacompat {

import scala.collection.mutable.ArrayBuilder
import scala.reflect.ClassTag

  def arrayBuilderMake[T]()(implicit tag: ClassTag[T]): ArrayBuilder[T] =
      ArrayBuilder.make[T]

  def parallelSeq[A](s: Seq[A]): Seq[A] = {
    throw new Exception("parallel sequences are currently disabled for scala 2.13 and higher")
  }

  def preScala2p13: Boolean = false

  type SeqLike[A, C] = scala.collection.SeqOps[A, Seq, C]

  type IterableLike[A, C] = scala.collection.IterableOps[A, Iterable, C]

  private[spire] type IterableOnce[+X] = scala.collection.IterableOnce[X]

  private[spire] type Factory[-A, +C] = scala.collection.Factory[A, C]

  private[spire] type FactoryCompatOps
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy