Scala Library: MapCanBuildFrom
scala.collection.generic.GenMapFactory#MapCanBuildFrom
The standard CanBuildFrom
class for maps.
Instance Constructors From scala.collection.generic.GenMapFactory.MapCanBuildFrom ——————————————————————————–
new MapCanBuildFrom()
(defined at scala.collection.generic.GenMapFactory.MapCanBuildFrom)
Value Members From scala.collection.generic.GenMapFactory.MapCanBuildFrom
def apply(): Builder[(A, B), CC[A, B]]
Creates a new builder from scratch.
- returns
- a builder for collections of type
To
with element typeElem
.
- a builder for collections of type
- Definition Classes
- MapCanBuildFrom → CanBuildFrom
- See also
- scala.collection.breakOut
(defined at scala.collection.generic.GenMapFactory.MapCanBuildFrom)
def apply(from: Coll): Builder[(A, B), CC[A, B]]
Creates a new builder on request of a collection.
- from
- the collection requesting the builder to be created.
- returns
- a builder for collections of type
To
with element typeElem
. The collections framework usually arranges things so that the created builder will build the same kind of collection asfrom
.
- a builder for collections of type
- Definition Classes
- MapCanBuildFrom → CanBuildFrom
(defined at scala.collection.generic.GenMapFactory.MapCanBuildFrom)
Value Members From Implicit scala.collection.parallel.CollectionsHaveToParArray ——————————————————————————–
def toParArray: ParArray[T]
- Implicit information
- This member is added by an implicit conversion from MapCanBuildFrom [A, B] to CollectionsHaveToParArray [MapCanBuildFrom [A, B], T] performed by method CollectionsHaveToParArray in scala.collection.parallel. This conversion will take place only if an implicit value of type (MapCanBuildFrom [A, B]) ⇒ GenTraversableOnce [T] is in scope.
- Definition Classes
- CollectionsHaveToParArray (added by implicit convertion: scala.collection.parallel.CollectionsHaveToParArray)
Full Source:
Interested in Scala?
I send out weekly, personalized emails with articles and conference talks.
Subscribe now.