import * as tsplus_module_1 from "@tsplus/stdlib/data/Tuple/make";
import * as tsplus_module_2 from "@effect/core/stream/Channel/operations/map";
import * as tsplus_module_3 from "@effect/core/stream/Channel/operations/flatMap";
/**
 * Returns a new channel that is the sequential composition of this channel
 * and the specified channel. The returned channel terminates with a tuple of
 * the terminal values of both channels.
 *
 * @tsplus fluent ets/Channel zip
 */

export function zip_(self, that) {
  return tsplus_module_3.flatMap_(self, a => tsplus_module_2.map_(that(), b => tsplus_module_1.make(a, b)));
}
/**
 * Returns a new channel that is the sequential composition of this channel
 * and the specified channel. The returned channel terminates with a tuple of
 * the terminal values of both channels.
 *
 * @tsplus static ets/Channel/Aspects zip
 */

export const zip = that => self => zip_(self, that);
//# sourceMappingURL=zip.mjs.map