With the advent of TraversableOnce
, it can be useful to have a builder which
operates on Iterator
s so they can be treated uniformly along with the collections.
With the advent of TraversableOnce
, it can be useful to have a builder which
operates on Iterator
s so they can be treated uniformly along with the collections.
See scala.util.Random.shuffle
or scala.concurrent.Future.sequence
for an example.
Evidence for building collections from TraversableOnce
collections