StreamClass.prototype.withIndex(offset?: number): StreamClass<readonly [T, number], E>
Pairs each value with its index: [value, index]. Failures pass bare and consume no
index — pairs stay contiguous.
await Stream.from(['a', 'b']).withIndex(1).collect(); // [['a', 1], ['b', 2]]
StreamClass<readonly [T, number], E>