import * as tsplus_module_1 from "@effect/core/stream/Channel/MergeStrategy";
import * as tsplus_module_2 from "@effect/core/stream/Channel/operations/mapOut";
import * as tsplus_module_3 from "@effect/core/stream/Channel/operations/mergeAll";
/**
 * @tsplus fluent ets/Channel mergeMap
 */

export function mergeMap_(self, n, f, bufferSize = 16, mergeStrategy = tsplus_module_1.BackPressure) {
  return tsplus_module_3.mergeAll_(tsplus_module_2.mapOut_(self, f), n, bufferSize, mergeStrategy);
}
/**
 * @tsplus static ets/Channel/Aspects mergeMap
 */

export const mergeMap = (n, f, bufferSize = 16, mergeStrategy = MergeStrategy.BackPressure) => self => mergeMap_(self, n, f, bufferSize, mergeStrategy);
//# sourceMappingURL=mergeMap.mjs.map