Jacek Sieka 9b985e8ea8
results: Add isOkOr, isErrOr (#176)
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:

```nim
v.update().isOkOr:
  echo "update failed: ", error
```
2023-04-20 13:08:54 +02:00
..
2022-11-18 12:52:55 +01:00
2020-06-15 21:09:41 +07:00
2022-07-08 10:34:21 +01:00
2022-07-08 10:34:21 +01:00
2022-07-08 10:34:21 +01:00
2022-07-08 10:34:21 +01:00
2022-07-08 10:34:21 +01:00
2023-02-14 21:35:54 +07:00
2023-02-14 21:35:54 +07:00
2022-07-08 10:34:21 +01:00
2022-12-15 17:11:53 +02:00