public static < T1 , T2 , R > BiConsumer < T1 , T2 > consumer ( BiFunction < T1 , T2 , R > function ) { dbc . precondition ( function != null , "cannot adapt a null function" ) ; return function :: apply ; }
Adapts a binary function to a binary consumer .