diff options
Diffstat (limited to 'src/strawman/collections')
-rw-r--r-- | src/strawman/collections/CollectionStrawMan1.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/strawman/collections/CollectionStrawMan1.scala b/src/strawman/collections/CollectionStrawMan1.scala index 2e9e5080e..c127757ad 100644 --- a/src/strawman/collections/CollectionStrawMan1.scala +++ b/src/strawman/collections/CollectionStrawMan1.scala @@ -52,7 +52,7 @@ object CollectionStrawMan1 { def isEmpty: Boolean = !iterator.hasNext def head: A = iterator.next def view: View[A] = new View(iterator) - def collectAs[C[X] <: Iterable[X]](fi: FromIterator[C]): C[A] = fi.fromIterator(iterator) + def to[C[X] <: Iterable[X]](fi: FromIterator[C]): C[A] = fi.fromIterator(iterator) } /** Transforms returning same collection type */ @@ -216,7 +216,7 @@ object CollectionStrawMan1 { implicit class ViewOps[A](val v: View[A]) extends AnyVal with Ops[A] { def iterator = v.iterator - def cache = collectAs(ArrayBuffer).view + def cache = to(ArrayBuffer).view } implicit class ViewMonoTransforms[A](val v: View[A]) |