// ets_tracing: off
import { pipe } from "../../../../Function";
import * as FlattenChunks from "./flattenChunks";
import * as FlattenExitOption from "./flattenExitOption";
import * as Map from "./map";
/**
 * Unwraps `Exit` values and flatten chunks that also signify end-of-stream by failing with `None`.
 */

export function flattenTake(self) {
  return FlattenChunks.flattenChunks(FlattenExitOption.flattenExitOption(Map.map_(self, _ => _.exit)));
}
//# sourceMappingURL=flattenTake.js.map