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