(option: Option.Option<A>)
| 2559 | |
| 2560 | /** @internal */ |
| 2561 | export const exitFromOption = <A>(option: Option.Option<A>): Exit.Exit<A, void> => { |
| 2562 | switch (option._tag) { |
| 2563 | case "None": |
| 2564 | return exitFail(void 0) |
| 2565 | case "Some": |
| 2566 | return exitSucceed(option.value) |
| 2567 | } |
| 2568 | } |
| 2569 | |
| 2570 | /** @internal */ |
| 2571 | export const exitGetOrElse = dual< |
nothing calls this directly
no test coverage detected