3 ms·
Doesn't seem very useful though, when you can just write that out, or use `bool::then`, or use some weird combinator on `Option` e.g. `Some(42).filter(|_| x)`.
by masklinn 4y ago
Doesn't seem very useful though, when you can just write that out, or use `bool::then`, or use some weird combinator on `Option` e.g. `Some(42).filter(|_| x)`.
- _flux 4y agoUnless you want to return from within the filter with some error return code, or call an asynchronous function.