code: public static <T1, T2, T3, R> TriConsumer<T1, T2, T3> consumer(TriFunction<T1, T2, T3, R> function) {
          dbc.precondition(function != null, "cannot adapt a null function");
          return function::apply;
      }
docs: Adapts a ternary function to a ternary consumer.
  
  @param <R> the function return type
  @param <T1> the function first parameter type
  @param <T2> the function second parameter type
  @param <T3> the function third parameter type
  @param function the function to be adapted
  @return the adapted consumer