diff options
author | Martin Odersky <odersky@gmail.com> | 2015-10-06 13:46:01 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-10-06 13:54:37 +0200 |
commit | 4bc469388a4d870f412932d380c3e04741de5575 (patch) | |
tree | 3e4ae7e52ddce1a3b92025fad2e0befabbf41bec /src/strawman/collections/CollectionStrawMan1.scala | |
parent | d42f4fee8717a91c845b6b8e1eaa053927f4b7e9 (diff) | |
download | dotty-4bc469388a4d870f412932d380c3e04741de5575.tar.gz dotty-4bc469388a4d870f412932d380c3e04741de5575.tar.bz2 dotty-4bc469388a4d870f412932d380c3e04741de5575.zip |
Rename collectAs -> to
Diffstat (limited to 'src/strawman/collections/CollectionStrawMan1.scala')
-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]) |