// ets_tracing: off import * as CK from "../../../../Collections/Immutable/Chunk/index.js" import type * as C from "../core.js" import * as Concat from "./concat.js" import * as FromChunk from "./fromChunk.js" import * as Intersperse from "./intersperse.js" /** * Intersperse and also add a prefix and a suffix */ export function intersperseAffixes_( self: C.Stream, start: A1, middle: A1, end: A1 ): C.Stream { return Concat.concat_( Concat.concat_( FromChunk.fromChunk(CK.single(start)), Intersperse.intersperse_(self, middle) ), FromChunk.fromChunk(CK.single(end)) ) } /** * Intersperse and also add a prefix and a suffix * * @ets_data_first intersperseAffixes_ */ export function intersperseAffixes(start: A1, middle: A1, end: A1) { return (self: C.Stream) => intersperseAffixes_(self, start, middle, end) }