// ets_tracing: off import * as Ex from "../../../../Exit/index.js" import * as O from "../../../../Option/index.js" import type * as C from "../core.js" import * as Collect from "./collect.js" /** * Filters any `Exit.Failure` values. */ export function collectSuccess( self: C.Stream> ): C.Stream { return Collect.collect_( self, Ex.fold( (_) => O.none, (a) => O.some(a) ) ) }