public static < T1 , T2 , T3 , R > BiFunction < T1 , T2 , R > compose ( Function < T3 , R > unary , BiFunction < T1 , T2 , T3 > binary ) { dbc . precondition ( unary != null , "cannot compose a null unary function" ) ; dbc . precondition ( binary != null , "cannot compose a null binary function" ) ; return binary . andThen ( unary ) ; }
Composes a function with a binary function .