public static < T1 , T2 , R > Function < T2 , R > curry ( BiFunction < T1 , T2 , R > function , T1 first ) { dbc . precondition ( function != null , "cannot bind parameter of a null function" ) ; return second -> function . apply ( first , second ) ; }
Partial application of the first parameter to a binary function .