code: public static DoubleIterator generate(final DoubleSupplier supplier) {
          N.checkArgNotNull(supplier);
  
          return new DoubleIterator() {
              @Override
              public boolean hasNext() {
                  return true;
              }
  
              @Override
              public double nextDouble() {
                  return supplier.getAsDouble();
              }
          };
      }
docs: Returns an infinite {@code DoubleIterator}.
  
  @param supplier
  @return