import * as tsplus_module_1 from "@tsplus/stdlib/data/Tuple/mergeTuple";
import * as tsplus_module_2 from "@effect/core/stream/Stream/operations/zipWith";
/**
 * Zips this stream with another point-wise and emits tuples of elements from
 * both streams.
 *
 * The new stream will end when one of the sides ends.
 *
 * @tsplus fluent ets/Stream zipFlatten
 */

export function zipFlatten_(self, that, __tsplusTrace) {
  return tsplus_module_2.zipWith_(self, that, (a, a2) => tsplus_module_1.mergeTuple(a, a2), __tsplusTrace);
}
/**
 * Zips this stream with another point-wise and emits tuples of elements from
 * both streams.
 *
 * The new stream will end when one of the sides ends.
 *
 * @tsplus static ets/Stream/Aspects zipFlatten
 */

export const zipFlatten = (that, __tsplusTrace) => self => zipFlatten_(self, that, __tsplusTrace);
//# sourceMappingURL=zipFlatten.mjs.map