import * as tracing_1 from "../../../../Tracing"
import * as tracing_2 from "../../../../Tracing"
const fileName_1 = "(@effect-ts/system): _src/Collections/Immutable/Chunk/api/join.ts"
import { reduce_ } from "./reduce"
/**
 * joins the elements togehther with "sep" in the middle
 */

export function join_(self, sep) {
  return reduce_(self, "", (s, a) => (s.length > 0 ? `${sep}${s}${a}` : a))
}
/**
 * joins the elements togehther with "sep" in the middle
 *
 * @dataFirst join_
 */

export function join(sep) {
  return (self) => join_(self, sep)
}
//# sourceMappingURL=join.js.map
