v1.1.0
-
Added
unwrap_and
-
Refactored
handle
. Now it returns itself.def on_success(value): print(f"on_success: {value}") def on_failure(value): print(f"on_failure: {value}") result = Success("Hi!") value = result.handle(on_success, on_failure).unwrap()