code: public static <R> Stream<R> of(Iterator<R> iterator) {
          return new Stream<R>(iterator);
      }
docs: Create a stream based on an iterator.
  
  @param iterator the iterator
  @param <R>      type of elements
  @return a new stream
  @since 1.9.1