(f: (oe: Option.Option<E>) => Option.Option<T>)
| 595 | * @since 4.0.0 |
| 596 | */ |
| 597 | export function transformOptional<T, E>(f: (oe: Option.Option<E>) => Option.Option<T>): Getter<T, E> { |
| 598 | return new Getter((oe) => Effect.succeed(f(oe))) |
| 599 | } |
| 600 | |
| 601 | /** |
| 602 | * Creates a getter that always returns `None`, effectively omitting the value from output. |