code: public boolean is(VectorPredicate predicate) {
          boolean result = true;
          VectorIterator it = iterator();
  
          while (it.hasNext()) {
              double x = it.next();
              int i = it.index();
              result = result && predicate.test(i, x);
          }
  
          return result;
      }
docs: Checks whether this vector compiles with given {@code predicate} or not.
  
  @param predicate the vector predicate
  
  @return whether this vector compiles with predicate