diff options
author | mihaylov <mihaylov@epfl.ch> | 2007-06-17 16:30:00 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2007-06-17 16:30:00 +0000 |
commit | d675971454254b1ebf5560d4af2829a3c4017930 (patch) | |
tree | 1ca87eefea3f91e1f243c10ecfc36ca1a9cb880b | |
parent | 6bc98cf8aff5fe7e595b1ec11712aa95356142aa (diff) | |
download | scala-d675971454254b1ebf5560d4af2829a3c4017930.tar.gz scala-d675971454254b1ebf5560d4af2829a3c4017930.tar.bz2 scala-d675971454254b1ebf5560d4af2829a3c4017930.zip |
Fixed contrib #658 - Iterable.isEmpty
-rw-r--r-- | src/library/scala/Iterable.scala | 2 |
1 files changed, 1 insertions, 1 deletions
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 <code>filter</code>, |