import * as tsplus_module_1 from "@effect/core/stream/Channel/operations/concatMapWith";
/**
 * Returns a new channel whose outputs are fed to the specified factory
 * function, which creates new channels in response. These new channels are
 * sequentially concatenated together, and all their outputs appear as outputs
 * of the newly returned channel.
 *
 * @tsplus fluent ets/Channel concatMap
 */

export function concatMap_(self, f) {
  return tsplus_module_1.concatMapWith_(self, f, () => undefined, () => undefined);
}
/**
 * Returns a new channel whose outputs are fed to the specified factory
 * function, which creates new channels in response. These new channels are
 * sequentially concatenated together, and all their outputs appear as outputs
 * of the newly returned channel.
 *
 * @tsplus static ets/Channel/Aspects concatMap
 */

export const concatMap = f => self => concatMap_(self, f);
//# sourceMappingURL=concatMap.mjs.map