From d675971454254b1ebf5560d4af2829a3c4017930 Mon Sep 17 00:00:00 2001 From: mihaylov Date: Sun, 17 Jun 2007 16:30:00 +0000 Subject: Fixed contrib #658 - Iterable.isEmpty --- src/library/scala/Iterable.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/library/scala/Iterable.scala b/src/library/scala/Iterable.scala index 00f72e3529..5657a624cd 100644 --- a/src/library/scala/Iterable.scala +++ b/src/library/scala/Iterable.scala @@ -444,7 +444,7 @@ trait Iterable[+A] { /** Is this collection empty? */ - def isEmpty = elements.hasNext + def isEmpty = !elements.hasNext /** * returns a projection that can be used to call non-strict filter, -- cgit v1.2.3