Skip to content

Commit

Permalink
[lazy] smarter ASeq and LazySeq isEmpty()
Browse files Browse the repository at this point in the history
  • Loading branch information
richhickey committed Feb 16, 2009
1 parent 2000a90 commit be56ab8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/jvm/clojure/lang/ASeq.java
Expand Up @@ -184,7 +184,7 @@ public int size(){
}

public boolean isEmpty(){
return count() == 0;
return seq() == null;
}

public boolean contains(Object o){
Expand Down
2 changes: 1 addition & 1 deletion src/jvm/clojure/lang/LazySeq.java
Expand Up @@ -145,7 +145,7 @@ public int size() {
}

public boolean isEmpty() {
return count() == 0;
return seq() == null;
}

public boolean contains(Object o) {
Expand Down

0 comments on commit be56ab8

Please sign in to comment.