// tracing: off
import * as A from "../../Collections/Immutable/Chunk"
import { pipe } from "../../Function"
import * as T from "../_internal/effect"
import { mapConcatChunkM_ } from "./mapConcatChunkM"
/**
 * Effectfully maps each element to an iterable, and flattens the iterables into
 * the output of this stream.
 */

export function mapConcatM_(self, f) {
  return mapConcatChunkM_(self, (o) => T.map_(f(o), A.from))
}
/**
 * Effectfully maps each element to an iterable, and flattens the iterables into
 * the output of this stream.
 */

export function mapConcatM(f) {
  return (self) => mapConcatM_(self, f)
}
//# sourceMappingURL=mapConcatM.js.map
