import * as tsplus_module_1 from "@tsplus/stdlib/collections/Chunk/forEach";
import * as tsplus_module_2 from "@effect/core/stream/Sink/operations/foldLeftChunks";
import * as tsplus_module_3 from "@effect/core/stream/Sink/operations/map";
import * as tsplus_module_4 from "@effect/core/stream/Sink/operations/suspend";
import { constVoid } from "@tsplus/stdlib/data/Function";
/**
 * @tsplus static ets/Sink/Ops mkString
 */

export function mkString(__tsplusTrace) {
  return tsplus_module_4.suspend(() => {
    const strings = [];
    return tsplus_module_3.map_(tsplus_module_2.foldLeftChunks(constVoid, (_, elems) => tsplus_module_1.forEach_(elems, elem => {
      strings.push(String(elem));
    }), __tsplusTrace), () => strings.join(""), __tsplusTrace);
  }, __tsplusTrace);
}
//# sourceMappingURL=mkString.mjs.map