code: public static <T> Supplier<T> memoize(final Supplier<T> function) {
      return new Memoizer<T, T>().doMemoize(function);
    }
docs: <p>memoize.</p>
  
  @param function a {@link java.util.function.Supplier} object.
  @param <T> a T object.
  @return a {@link java.util.function.Supplier} object.