unwrap method
T
unwrap()
inherited
Unwraps an option, yielding the content of a Some
.
Throws an empty exception if this result is a None
.
Implementation
T unwrap() => toNullable() ?? (throw OptionUnwrapException<T>());