code: public static <T, U, V, R> Function<Triple<T, U, V>, R> tupled(TriFunction<T, U, V, R> function) {
          dbc.precondition(function != null, "cannot apply a triple to a null function");
          return triple -> function.apply(triple.first(), triple.second(), triple.third());
      }
docs: Adapts a ternary function to a function accepting a triple.
  
  @param <T> the function first parameter type
  @param <U> the function second parameter type
  @param <V> the function third parameter type
  @param <R> the function return type
  @param function the function to be adapted
  @return the adapted function