From d7da5b7e4fde8bc567f31d91a5da8a2b24617d32 Mon Sep 17 00:00:00 2001 From: mihaylov Date: Mon, 12 Feb 2007 10:14:16 +0000 Subject: Fixed Iterable.drop according to contribution #332 --- src/library/scala/Iterable.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/library/scala/Iterable.scala b/src/library/scala/Iterable.scala index 916b0ecdf4..95c9294597 100644 --- a/src/library/scala/Iterable.scala +++ b/src/library/scala/Iterable.scala @@ -186,7 +186,7 @@ trait Iterable[+A] { * @return the new iterable */ def drop(n: Int): Iterable[A] = - new ArrayBuffer[A] ++ elements.take(n) + new ArrayBuffer[A] ++ elements.drop(n) /** Apply a function f to all elements of this * iterable object. -- cgit v1.2.3