OkOrErr<T> extension

ok and err have the same type

on

Methods

okOrErr() → T
Returns the ok (success) value if type is ok, and the err (failure) value if type is err.