// ets_tracing: off import type * as C from "../core.js" import * as OrElse from "./orElse.js" import * as Succeed from "./succeed.js" /** * Succeeds with the specified value if this one fails with a typed error. */ export function orElseSucceed_( self: C.Stream, a1: A1 ): C.Stream { return OrElse.orElse_(self, Succeed.succeed(a1)) } /** * Succeeds with the specified value if this one fails with a typed error. * * @ets_data_first orElseSucceed_ */ export function orElseSucceed(a1: A1) { return (self: C.Stream) => orElseSucceed_(self, a1) }