code: public static <F, T> CloseableIterator<T> transform(CloseableIterator<F> iterator, Function<F, T> function) {
          return wrap(Iterators.transform(iterator, function::apply), iterator);
      }
docs: Returns a closeable iterator that applies {@code function} to each element of {@code
  fromIterator}.