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