stew is collection of utilities, std library extensions and budding libraries that are frequently used at Status, but are too small to deserve their own git repository.
These two helpers complete valueOr and errorOr to cover void cases where no value should be returned or Result[void, E] / Result[T, void] is being used - they can be used for a convient early-return style in side-effectful proc:s:
These two helpers complete
valueOr
anderrorOr
to covervoid
cases where no value should be returned orResult[void, E]
/Result[T, void]
is being used - they can be used for a convient early-return style in side-effectful proc:s: