public static < T , R > Supplier < R > curry ( Function < T , R > function , T value ) { dbc . precondition ( function != null , "cannot bind parameter of a null function" ) ; return ( ) -> function . apply ( value ) ; }
Partial application of the parameter to a function .