04d3ac84e7
modified: ../../test/typeinference/UnifyTest.java Matrix auskommentiert und Lambda einkommentiert
18 lines
219 B
Java
18 lines
219 B
Java
import java.lang.Integer;
|
|
|
|
class Faculty {
|
|
|
|
m () {
|
|
|
|
var fact = (Integer x) -> {
|
|
if (x == 1) {
|
|
return x;
|
|
}
|
|
else {
|
|
return x * fact.apply(x-1);
|
|
}
|
|
};
|
|
return fact;
|
|
}
|
|
}
|