Method References and partial application

Ali Ebrahimi ali.ebrahimi1781 at gmail.com
Sat Jun 25 04:38:10 PDT 2011


Hi Brian,
Is partial application Support for Method References in current scope?

class Test{
    public static int multiply(int x, int y){    return x * y;}

    public static void main(String... args){
            SAM2 sam2 = Test#multiply;
            SAM1 sam1 = Test#multiply(10,int);
            SAM0 sam0 = Test#multiply(10,20);
            SAM0 sam00 = sam1#apply(20);
    }
}

Best Regards,
Ali Ebrahimi


More information about the lambda-dev mailing list