/** * @tsplus static DSL orElseF_ */ export function orElseF_(F: Covariant & AssociativeEither) { return ( fa: HKT.Kind, fb: LazyArg> ): HKT.Kind => F.map((either: Either) => either.merge)(F.orElseEither(fb)(fa)) } /** * @tsplus static DSL orElseF */ export function orElseF(F: Covariant & AssociativeEither) { return (fb: LazyArg>) => (fa: HKT.Kind): HKT.Kind => orElseF_(F)(fa, fb) }