Repository navigation
This release introduces new utility functions for debugging and logging without breaking existing chains of operations.
New Features
inspect(fn): This method allows you to "peek" at anOkvalue, run a function with it (e.g., for logging), and then pass the originalResultobject on. It is ignored if theResultis anErr.inspect_err(fn): This method does the same, but forErrvalues. It allows you to inspect, log, or perform a side-effect on an error without consuming it. It is ignored if theResultisOk.
Improvements
- Internal implementation of
map_errhas been refactored for improved robustness (non-breaking change).