JavaTXCompilerInJavaTX/test/javFiles/Faculty.jav
2018-01-31 18:38:52 +01:00

19 lines
290 B
Java

import java.lang.Integer;
class Faculty {
Integer mul(Integer x, Integer y) {
return x;
}
Fun1<java.lang.Integer,java.lang.Integer> m () {
var fact = (Integer x) -> {
return mul(x, fact.apply(x));
};
return fact;
}
}
interface Fun1<A,B>{
B apply(A a);
}