Unwraps the Some value or throws if the value is None. Use in tests or at the boundary of an assertion; prefer match / getOrElse in production code paths.
Some
None
match
getOrElse
expect(unwrap(parseUser(raw))).toEqual(expected); Copy
expect(unwrap(parseUser(raw))).toEqual(expected);
Unwraps the
Somevalue or throws if the value isNone. Use in tests or at the boundary of an assertion; prefermatch/getOrElsein production code paths.