Sealed Interfaces
Result
Kotlin Sealed Interface
Sealed Interface
Chains a success through transform, which itself returns a Result.
Applies onSuccess or onFailure depending on the result variant.
Returns the success value, or null if this is a Result.Failure.
Returns the success value, or throws if this is a Result.Failure.
Transforms the success value using transform, leaving failures unchanged.
Transforms the error using transform, leaving successes unchanged.

