import * as tsplus_module_1 from "@effect/core/stream/Stream/operations/make";
import * as tsplus_module_2 from "@effect/core/stream/Stream/operations/intersperse";
import * as tsplus_module_3 from "@effect/core/stream/Stream/operations/concat";
import * as tsplus_module_4 from "@effect/core/stream/Stream/operations/suspend";
/**
 * Intersperse and also add a prefix and a suffix.
 *
 * @tsplus fluent ets/Stream intersperseAffixes
 */

export function intersperseAffixes_(self, start, middle, end, __tsplusTrace) {
  return tsplus_module_4.suspend(() => tsplus_module_3.concat_(tsplus_module_3.concat_(tsplus_module_1.make(start()), () => tsplus_module_2.intersperse_(self, middle, __tsplusTrace), __tsplusTrace), () => tsplus_module_1.make(end()), __tsplusTrace), __tsplusTrace);
}
/**
 * Intersperse and also add a prefix and a suffix.
 *
 * @tsplus static ets/Stream/Aspects intersperseAffixes
 */

export const intersperseAffixes = (start, middle, end, __tsplusTrace) => self => intersperseAffixes_(self, start, middle, end, __tsplusTrace);
//# sourceMappingURL=intersperseAffixes.mjs.map