wip
This commit is contained in:
committed by
Yadunand Prem
parent
4e99493aa5
commit
f5a9db22d1
10
Lab4/MyTest.java
Normal file
10
Lab4/MyTest.java
Normal 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;
|
||||
}
|
||||
}));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user