Advertisement
crassus9999

Untitled

Apr 16th, 2014
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.27 KB | None | 0 0
  1. @Override
  2.     public boolean isEmpty() {
  3.         if(source.isEmpty()) return true;
  4.        
  5.         if(predicate.apply(source.head())) {
  6.             return false;
  7.         } else {
  8.             source = source.tail();
  9.             return source.isEmpty();
  10.         }
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement