(either: Either.Either<R, L>)
| 2549 | |
| 2550 | /** @internal */ |
| 2551 | export const exitFromEither = <R, L>(either: Either.Either<R, L>): Exit.Exit<R, L> => { |
| 2552 | switch (either._tag) { |
| 2553 | case "Left": |
| 2554 | return exitFail(either.left) |
| 2555 | case "Right": |
| 2556 | return exitSucceed(either.right) |
| 2557 | } |
| 2558 | } |
| 2559 | |
| 2560 | /** @internal */ |
| 2561 | export const exitFromOption = <A>(option: Option.Option<A>): Exit.Exit<A, void> => { |
nothing calls this directly
no test coverage detected