2018-01-31 15:15:07 +00:00
|
|
|
import java.lang.Integer;
|
|
|
|
|
2017-06-26 14:59:10 +00:00
|
|
|
class Faculty {
|
|
|
|
|
2017-06-28 15:20:26 +00:00
|
|
|
Integer mul(Integer x, Integer y) {
|
|
|
|
return x;
|
|
|
|
}
|
|
|
|
|
2018-01-31 17:38:52 +00:00
|
|
|
Fun1<java.lang.Integer,java.lang.Integer> m () {
|
2017-09-25 21:47:38 +00:00
|
|
|
var fact = (Integer x) -> {
|
2017-06-28 15:20:26 +00:00
|
|
|
return mul(x, fact.apply(x));
|
2017-06-26 14:59:10 +00:00
|
|
|
};
|
|
|
|
return fact;
|
|
|
|
}
|
|
|
|
}
|
2018-01-31 17:38:52 +00:00
|
|
|
|
|
|
|
interface Fun1<A,B>{
|
|
|
|
B apply(A a);
|
|
|
|
}
|