import { flatMapStream } from "@effect/core/testing/_internal/flatMapStream" /** * An implementation of `Stream.merge` that supports breadth first search. */ export function mergeStream( left: Stream>, right: Stream> ): Stream> { return flatMapStream( Stream( Maybe.some>>(left), Maybe.some>>(right) ), identity ) }