StreamDup provides the ability to duplicate a single Stream into an arbitrary number of
Streams that yield the same sequence of items as the original stream.
StreamDupExt extends types that implement Stream with the dup
method, which returns a StreamDup that provides the ability to create multiple streams that
yield the same sequence of items as the original stream.