feat: update structure

This commit is contained in:
2024-01-22 14:27:40 +08:00
parent 7836c9185c
commit 3544a28a2e
559 changed files with 120846 additions and 4102 deletions

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;
}));
}
}