feat: move everything to single folder

This commit is contained in:
Yadunand Prem
2022-11-05 10:28:46 +08:00
parent 0eb6cd0b30
commit 44c87f3500
315 changed files with 48612 additions and 0 deletions

13
cs2030s/Lab8/MyTest.java Normal file
View File

@@ -0,0 +1,13 @@
import cs2030s.fp.InfiniteList;
public class MyTest {
public static void main(String[] args) {
InfiniteList<Integer> list = InfiniteList.iterate(1, x -> x + 1);
System.out.println(list.takeWhile(x -> x < 10).reduce(0, (x, y) -> {
System.out.println("vals: x: " + x + " y: " + y);
return x + y;
}));
}
}