// ets_tracing: off
import * as A from "../../Collections/Immutable/Chunk";
import { pipe } from "../../Function";
import { concat } from "./concat";
import { fromChunk } from "./fromChunk";
import { intersperse_ } from "./intersperse";
/**
 * Intersperse and also add a prefix and a suffix
 */

export function intersperseAffixes(self, start, middle, end) {
  return concat(fromChunk(A.single(end)))(concat(intersperse_(self, middle))(fromChunk(A.single(start))));
}
//# sourceMappingURL=intersperseAffixes.js.map