Skip to content

v1.1.0

Compare
Choose a tag to compare
@acostapazo acostapazo released this 21 Jan 10:21
  • 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()