code: public static <T> Function<T, Boolean> forPredicate(Predicate<T> predicate) {
  		return predicate::test;
  	}
docs: Creates a function that returns the same boolean output as the given predicate for all inputs.
  
  <p>The returned function is <i>consistent with equals</i> (as documented at {@link
  Function#apply}) if and only if {@code predicate} is itself consistent with equals.