From cc5e79c9ec9cea8d0f22020b528877d8f6e00153 Mon Sep 17 00:00:00 2001 From: Gilles Dubochet Date: Wed, 27 May 2009 19:35:02 +0000 Subject: In "Iterable" and in all its subclasses, "itera... In "Iterable" and in all its subclasses, "iterator" replaces "elements" (and assorted changes). --- test/files/run/withIndex.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/files/run/withIndex.scala') diff --git a/test/files/run/withIndex.scala b/test/files/run/withIndex.scala index f0c3e7a468..3b9c9e84e5 100644 --- a/test/files/run/withIndex.scala +++ b/test/files/run/withIndex.scala @@ -2,8 +2,8 @@ object Test { def main(args: Array[String]) = { val ary: Array[String] = Array("a", "b", "c") val lst: List[String] = List("a", "b", "c") - val itr: Iterator[String] = lst.elements - val str: Stream[String] = Stream.fromIterator(lst.elements) + val itr: Iterator[String] = lst.iterator + val str: Stream[String] = Stream.fromIterator(lst.iterator) Console.println(ary.zipWithIndex.toList) Console.println(lst.zipWithIndex.toList) @@ -18,7 +18,7 @@ object Test { val emptyArray = new Array[String](0) val emptyList: List[String] = Nil - val emptyIterator = emptyList.elements + val emptyIterator = emptyList.iterator val emptyStream: Stream[String] = Stream.empty Console.println(emptyArray.zipWithIndex.toList) -- cgit v1.2.3