"use strict"
Object.defineProperty(exports, "__esModule", { value: true })
exports.mapConcatChunkM = exports.mapConcatChunkM_ = void 0
const Function_1 = require("../../Function")
const mapConcatChunk_1 = require("./mapConcatChunk")
const mapM_1 = require("./mapM")
/**
 * Effectfully maps each element to a chunk, and flattens the chunks into
 * the output of this stream.
 */
function mapConcatChunkM_(self, f) {
  return (0, mapConcatChunk_1.mapConcatChunk)(Function_1.identity)(
    (0, mapM_1.mapM)(f)(self)
  )
}
exports.mapConcatChunkM_ = mapConcatChunkM_
/**
 * Effectfully maps each element to a chunk, and flattens the chunks into
 * the output of this stream.
 */
function mapConcatChunkM(f) {
  return (self) => mapConcatChunkM_(self, f)
}
exports.mapConcatChunkM = mapConcatChunkM
//# sourceMappingURL=mapConcatChunkM.js.map
