JavaPatternMatching/test/javFiles/mathStruc.jav
2017-06-26 16:59:10 +02:00

18 lines
261 B
Java

class mathStruc<A> {
mathStruc(A a) { ;}
A model(){ A a; return a; }
void methode(){
auto innerOp = o -> ms ->
new mathStruc<A>(o.apply(this.model(),ms.model()));
}
}
interface Fun1<A,B>{
A apply(B b);
}
interface Fun2<A,B,C>{
A apply(B b, C c);
}