1
0

add cartesian product

This commit is contained in:
2025-10-19 14:41:58 +02:00
parent 955acc6c96
commit 4e5dfd7134
4 changed files with 98 additions and 0 deletions

View File

@@ -111,6 +111,7 @@ export interface Sequence<TElement> extends Iterable<TElement> {
forEach(action: Action<TElement>): void;
zip<TOther>(sequence: Iterable<TOther>): Sequence<[TElement, TOther]>;
cartesianProduct<TOther>(sequence: Iterable<TOther>): Sequence<[TElement, TOther]>;
indexed(): Sequence<[number, TElement]>;