class Program
{
static void Main( string[] args )
{
myFunc(1)(2)(3);
var partial = myFunc(4)(4);
var sum1 = partial(1);
var sum2 = partial(2);
var sum3 = partial(3);
var sum4 = partial(4);
}
static Func& myFunc( int x ) => ( y ) => ( z ) => x + y + z;
}
댓글 없음:
댓글 쓰기