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
..
2023-02-14 21:35:54 +07:00
2023-02-14 21:35:54 +07:00
2023-02-14 21:35:54 +07:00
2023-02-14 21:35:54 +07:00
2023-02-14 21:35:54 +07:00
2022-12-15 17:11:53 +02:00
2022-11-18 15:22:29 +02:00
2022-08-18 23:57:27 +03:00
2022-08-18 23:57:27 +03:00
2023-02-14 21:35:54 +07:00

Candidates for standard library inclusion - functions and helpers that are too small to put in their own git repository