Enumerable.prototype.tee<N extends number = 2>(n?: N): Tuple<Enumerable<T>, N>
Split the sequence into multiple identical streams.
Useful when you need to process the same data in different ways. Uses buffering internally, so be mindful of memory with large datasets.
optional
n: N
The number of identical streams to create (default: 2).
Tuple<Enumerable<T>, N>
A tuple of n identical Enumerables.