This commit is contained in:
Yadunand Prem
2022-09-15 21:07:40 +08:00
committed by Yadunand Prem
parent 4e99493aa5
commit f5a9db22d1
9 changed files with 188 additions and 146 deletions

10
Lab4/MyTest.java Normal file
View File

@@ -0,0 +1,10 @@
class MyTest {
public static void main(String[] args) {
Probably<Integer> maybeInt = Probably.just(10);
System.out.println( maybeInt.transform(new Immutator<Integer,Integer>() {
public Integer invoke(Integer t1) {
return t1+1;
}
}));
}
}