Precisa de ajuda para entender lambda (currying)
Eu estou lendo C # acelerado realmente não entendo o seguinte código:
public static Func<TArg1, TResult> Bind2nd<TArg1, TArg2, TResult> (
this Func<TArg1, TArg2, TResult> func,
TArg2 constant )
{
return (x) => func( x, constant );
}
na última linha a que x se refere? e tem outro:
public static Func<TArg2, Func<TArg1, TResult>> Bind2nd<TArg1, TArg2, TResult>
( this Func<TArg1, TArg2, TResult> func )
{
return (y) => (x) => func( x, y );
}
Como eu avalio isso?(y) => (x) => func( x, y )
o que é passado onde ... é confuso.