trait Builder [ -A, +To ]

Base trait for collection builders

Constructors

Members

def ++= ( xs: IterableOnce [ A ] ) : Builder [ A, To ] & Builder [ A, To ]

Bulk append. Can be overridden if specialized implementations are available.

Bulk append. Can be overridden if specialized implementations are available.

def += ( x: A ) : Builder [ A, To ] & Builder [ A, To ]

Append an element

Append an element

def mapResult ( f: To => NewTo ) : Builder [ A, NewTo ]

A builder resulting from this builder my mapping the result using f.

A builder resulting from this builder my mapping the result using f.

def result : To

Result collection consisting of all elements appended so far.

Result collection consisting of all elements appended so far.