Permalink
Browse files

[lazy] smarter ASeq and LazySeq isEmpty()

  • Loading branch information...
1 parent 2000a90 commit be56ab81e88f8001494058a055089e982595c453 @richhickey richhickey committed Feb 16, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/jvm/clojure/lang/ASeq.java
  2. +1 −1 src/jvm/clojure/lang/LazySeq.java
@@ -184,7 +184,7 @@ public int size(){
}
public boolean isEmpty(){
- return count() == 0;
+ return seq() == null;
}
public boolean contains(Object o){
@@ -145,7 +145,7 @@ public int size() {
}
public boolean isEmpty() {
- return count() == 0;
+ return seq() == null;
}
public boolean contains(Object o) {

0 comments on commit be56ab8

Please sign in to comment.