Package pragma #
Types #
Name | Summary |
---|---|
A discriminated union that encapsulates a successful outcome with a value of type TSuccess or a failure with of type TFailure. Similar to kotlin.Result, but with non-exception failures. |
Functions #
Name | Summary |
---|---|
Returns the encapsulated result of the given onSuccess function applied to the encapsulated TSuccess if this instance represents success or the original encapsulated value if it is failure. | |
Returns the encapsulated value if this instance represents failure or the result of onFailure function for the encapsulated TSuccess if it is success. | |
Returns the encapsulated value if this instance represents success or the defaultValue if it is failure. | |
Returns the encapsulated value if this instance represents success or the result of onFailure function for the encapsulated TFailure if it is failure. | |
Returns the encapsulated result of the given transform function applied to the encapsulated value if this instance represents success or the original encapsulated TFailure value if it is failure. | |
Returns the encapsulated result of the given transform function applied to the encapsulated TFailure if this instance represents failure or the original encapsulated value if it is success. |