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 ( ) ) ; }
Adapts a ternary function to a function accepting a triple .