scala.collection.immutable.Bag.scala Maven / Gradle / Ivy
The newest version!
package scala.collection.immutable
import scala.collection._
import scala.collection.generic._
trait Bag[A]
extends scala.collection.Bag[A]
with immutable.BagLike[A, immutable.Bag[A]] {
}
object Bag extends generic.ImmutableHashedBagFactory[immutable.Bag] {
implicit def canBuildFrom[A](implicit bagConfiguration: HashedBagConfiguration[A]): CanBuildFrom[Coll, A, Bag[A]] = bagCanBuildFrom[A]
def empty[A](implicit bagConfiguration: HashedBagConfiguration[A]): Bag[A] = immutable.HashBag.empty[A]
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy