JavaPatternMatching/resources/bytecode/javFiles/OLFun.jav
2023-03-01 16:08:42 +01:00

19 lines
283 B
Java

import java.lang.String;
import java.lang.Integer;
import java.lang.Double;
import java.util.Vector;
import java.lang.Boolean;
public class OLFun {
//f = x -> {return x + x;};
m(f, x) {
x = f.apply(x+x);
return x;
}
m2(y) {
m(x -> x * 2, y);
return;
}
}