2017-04-19 13:26:37 +00:00
|
|
|
class Lambda{
|
|
|
|
|
|
|
|
String var;
|
|
|
|
|
|
|
|
methode(){
|
2017-05-15 11:15:49 +00:00
|
|
|
return () -> (f) -> {
|
|
|
|
f.apply(this, var);
|
|
|
|
return var;
|
|
|
|
};
|
2017-04-19 13:26:37 +00:00
|
|
|
}
|
|
|
|
|
2017-05-05 14:20:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
interface Fun1<A,B>{
|
|
|
|
A apply(B b);
|
|
|
|
}
|
|
|
|
|
|
|
|
interface Fun2<A,B,C>{
|
|
|
|
A apply(B b, C c);
|
2017-04-19 13:26:37 +00:00
|
|
|
}
|