From 4bc469388a4d870f412932d380c3e04741de5575 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 6 Oct 2015 13:46:01 +0200 Subject: Rename collectAs -> to --- src/strawman/collections/CollectionStrawMan1.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/strawman/collections/CollectionStrawMan1.scala') 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]) -- cgit v1.2.3