unwrap method

T unwrap()

Unsafe operations that returns T or throw E

Implementation

T unwrap() {
  return switch (this) {
    Ok(:final T value) => value,
    Err(:final E err) => throw err,
  };
}