All checks were successful
Build and Test with Maven / Build-and-test-with-Maven (push) Successful in 1m35s
new file: Fac.jav new file: Faculty.jav
18 lines
291 B
Java
18 lines
291 B
Java
import java.lang.Integer;
|
|
|
|
class mathStruc {
|
|
model;
|
|
|
|
innerOp = (o) -> (ms) -> new mathStruc<>(o.apply(model,ms.model));
|
|
|
|
mathStruc(m) {
|
|
model =m;
|
|
}
|
|
}
|
|
|
|
class mathStrucIntegerUse {
|
|
main() {
|
|
var ms = new mathStruc<>(2);
|
|
return ms.innerOp.apply((x,y) -> x+y).apply(ms);
|
|
}
|
|
} |