Method References and partial application

Ali Ebrahimi ali.ebrahimi1781 at gmail.com
Sat Jun 25 05:21:58 PDT 2011


Hi,
Good Idea. may be possible.

Ali Ebrahimi

On Sat, Jun 25, 2011 at 3:37 PM, Rémi Forax <forax at univ-mlv.fr> wrote:

> On 06/25/2011 01:38 PM, Ali Ebrahimi wrote:
> > 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
>
> Why only on method references and not on SAMs  ?
>
> rgds,
> Rémi
>
>
>
>


More information about the lambda-dev mailing list