// ets_tracing: off import * as CK from "../../../Collections/Immutable/Chunk/index.js" import * as Tp from "../../../Collections/Immutable/Tuple/index.js" import * as CH from "../Channel/index.js" import * as C from "./core.js" export function exposeLeftover( self: C.Sink ): C.Sink]>> { return new C.Sink( CH.map_(CH.doneCollect(self.channel), ({ tuple: [chunks, z] }) => Tp.tuple(z, CK.flatten(chunks)) ) ) }