okOrElse<E extends Object> method

Ok<T, Never> okOrElse<E extends Object>(
  1. E errFn()
)

Implementation

Ok<T, Infallible> okOrElse<E extends Object>(E Function() errFn) {
  return Ok(v);
}