martinmoene/expected-lite

Add `and_then`, `or_else`, `transform`, and `transform_error`.

Closed this issue · 3 comments

https://en.cppreference.com/w/cpp/utility/expected in C++23 will have those four member functions. We should have them in this expected library too.

thanks for the heads-up.

See proposal p2505: Monadic Functions for std::expected by Jeff Garland.

Implemented by @szaszm in #60.