/** * Interleaves this stream and the specified stream deterministically by * alternating pulling values from this stream and the specified stream. When * one stream is exhausted all remaining values in the other stream will be * pulled. * * @tsplus static effect/core/stream/Stream.Aspects interleave * @tsplus pipeable effect/core/stream/Stream interleave */ export function interleave(that: Stream) { return (self: Stream): Stream => self.interleaveWith(that, Stream(true, false).forever) }