public static < T1 , T2 > Consumer < T2 > curry ( BiConsumer < T1 , T2 > consumer , T1 first ) { dbc . precondition ( consumer != null , "cannot bind parameter of a null consumer" ) ; return second -> consumer . accept ( first , second ) ; }
Partial application of the first parameter to a binary consumer .