( self: Option<Either<A, E>> )
| 990 | * @category Optional Wrapping & Unwrapping |
| 991 | */ |
| 992 | export const transposeOption = <A = never, E = never>( |
| 993 | self: Option<Either<A, E>> |
| 994 | ): Either<Option<A>, E> => { |
| 995 | return option_.isNone(self) ? right(option_.none) : map(self.value, option_.some) |
| 996 | } |
| 997 | |
| 998 | /** |
| 999 | * Applies an `Either` on an `Option` and transposes the result. |