2019-05-14 18:30:32 +00:00
|
|
|
import java.lang.String;
|
2022-03-29 17:19:31 +00:00
|
|
|
import java.lang.Integer;
|
|
|
|
import java.lang.Double;
|
2019-05-14 18:30:32 +00:00
|
|
|
import java.util.Vector;
|
|
|
|
import java.lang.Boolean;
|
|
|
|
|
|
|
|
public class OLFun {
|
|
|
|
|
|
|
|
//f = x -> {return x + x;};
|
|
|
|
m(f, x) {
|
2022-03-29 13:58:10 +00:00
|
|
|
x = f.apply(x+x);
|
2023-03-01 14:55:15 +00:00
|
|
|
return x;
|
|
|
|
}
|
|
|
|
|
|
|
|
m2(y) {
|
|
|
|
m(x -> x * 2, y);
|
2023-03-01 15:08:42 +00:00
|
|
|
return;
|
2019-05-14 18:30:32 +00:00
|
|
|
}
|
|
|
|
}
|