feat: change up organisation
This commit is contained in:
11
labs/cs2030s/PE2/plab0124/MyTest.java
Normal file
11
labs/cs2030s/PE2/plab0124/MyTest.java
Normal file
@@ -0,0 +1,11 @@
|
||||
import cs2030s.fp.Saveable;
|
||||
import cs2030s.fp.Immutator;
|
||||
import java.util.stream.Stream;
|
||||
import java.util.List;
|
||||
|
||||
class MyTest {
|
||||
public static void main(String[] args){
|
||||
Immutator<Saveable<Integer>, Object> hash = o -> Saveable.<Integer>of(o.hashCode() + 10);
|
||||
Saveable.<Number>of(4).flatMap2(hash);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user