okOrElse<E extends Object> method

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

Implementation

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