Jacek Sieka 13e55ed27a
results: collections integration (#179)
This set of helpers allows treating Result and Opt as collections of 0
or 1 item, allowing iterating over them and checking "membership" - such
integration is useful in generic code which can then be generalised to
handle more complex cases - the integration is most useful with Opt.

One design tradeoff here is the "explicitness" of `items` vs `values`
for `Result` - technically error and value are "equal" and therefore we
shouldn't give preference to the value, but there exists a convenience
argument to treat the value as the "default" and therefore define
`items` / `contains` for `Result` as well - this PR chooses the more
conservative and explicit approach - a more liberal version can easily
be added later should motivating examples emerge.
2023-06-07 16:45:53 +02:00
..
2023-02-14 21:35:54 +07:00
2023-05-26 15:41:13 +03:00
2023-02-14 21:35:54 +07:00
2021-12-02 16:24:02 +01:00
2023-05-23 11:05:55 +02:00
2021-12-02 16:24:02 +01:00
2023-05-23 11:05:55 +02:00
2019-07-06 19:12:24 +02:00
2023-02-14 21:35:54 +07:00
2023-05-26 15:41:13 +03:00
2023-02-14 21:35:54 +07:00
2021-12-02 16:24:02 +01:00
2023-02-14 21:35:54 +07:00
2023-04-25 18:16:50 +02:00
2022-11-18 15:22:29 +02:00
2019-07-06 19:12:24 +02:00
2020-04-07 11:43:07 +02:00
2020-06-25 19:01:01 +02:00
2022-08-18 23:57:27 +03:00
2022-08-18 23:57:27 +03:00
2020-12-10 12:05:22 +01:00
2023-02-14 21:35:54 +07:00
2021-12-02 16:24:02 +01:00
2021-12-02 16:24:02 +01:00

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