Provides ways to create instances of Builder for arbitrary collection types.
Provides ways to create instances of Builder for arbitrary collection types.
This is a bit like CanBuildFrom (and instances of HasBuilder can be derived automatically for any type that
has a CanBuildFrom), but simpler (no From type parameter, no variance, ...) and with one critical difference:
all the default instances are Serializable, meaning that type classes that depend on HasBuilder can be
used with Apache Spark and other framework that, unfortunately, rely on serialisation.
Provides ways to create instances of
Builder
for arbitrary collection types.This is a bit like
CanBuildFrom
(and instances of HasBuilder can be derived automatically for any type that has aCanBuildFrom
), but simpler (noFrom
type parameter, no variance, ...) and with one critical difference: all the default instances areSerializable
, meaning that type classes that depend onHasBuilder
can be used with Apache Spark and other framework that, unfortunately, rely on serialisation.