Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBogomips authored Dec 23, 2024
1 parent bbce860 commit 20675fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ make the code more readable.

* `Result.Success`: Creates a successful `Result<T>` instance with the specified value.
* `Result.Failure`: Creates a failed `Result<T>` instance with the specified error.
* `Result.From`: Creates a successful or a failed `Result<T>` instance depending by the argument.
* `Result.Execute`: Encapsulate the execution of the code within a guard block that catches exceptions producing a `Result<T>`
* `Result.Ensure`: Creates a successful `Result<Unit>` instance if the specified condition is true, otherwise creates
a failed instance with the specified error.
* `Result.Bind`: Creates a `Result<T>` instance from a delegate. This method is particularly useful
Expand Down

0 comments on commit 20675fd

Please sign in to comment.