code: public static <T> T max(Iterator<T> self) {
          return max((Iterable<T>)toList(self));
      }
docs: Adds max() method to Iterator objects. The iterator will become
  exhausted of elements after determining the maximum value.
  
  @param self an Iterator
  @return the maximum value
  @see groovy.util.GroovyCollections#max(java.util.Collection)
  @since 1.5.5