// ets_tracing: off
import * as CK from "../../../../Collections/Immutable/Chunk";
import * as T from "../../../../Effect";
import { identity } from "../../../../Function";
import * as MapConcatChunk from "./mapConcatChunk";
import * as MapEffect from "./mapEffect";
/**
 * Effectfully maps each element to an iterable, and flattens the iterables into
 * the output of this stream.
 */

export function mapConcatEffect_(self, f) {
  return MapConcatChunk.mapConcatChunk_(MapEffect.mapEffect_(self, a => T.map_(f(a), CK.from)), identity);
}
/**
 * Effectfully maps each element to an iterable, and flattens the iterables into
 * the output of this stream.
 *
 * @ets_data_first mapConcatEffect_
 */

export function mapConcatEffect(f) {
  return self => mapConcatEffect_(self, f);
}
//# sourceMappingURL=mapConcatEffect.js.map