unwrap<L, R> function

R unwrap<L, R>(
  1. Either<L, R> either
)

Unwraps the value of an Either, throwing if the value is Left.

Implementation

R unwrap<L, R>(Either<L, R> either) => either._fold(
      (l) => throw UnwrapException(l),
      identity,
    );