From a1c22e954299de5c823ec47cd2f633355764e3b2 Mon Sep 17 00:00:00 2001 From: Dimitrii Dulgher Date: Sat, 13 Apr 2024 00:04:06 +0300 Subject: Add hrefs to code keywords --- .../lesson02_result_module/en.html | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/content/chapter4_standard_library/lesson02_result_module/en.html') diff --git a/src/content/chapter4_standard_library/lesson02_result_module/en.html b/src/content/chapter4_standard_library/lesson02_result_module/en.html index 4901afd..0760145 100644 --- a/src/content/chapter4_standard_library/lesson02_result_module/en.html +++ b/src/content/chapter4_standard_library/lesson02_result_module/en.html @@ -1,25 +1,25 @@

The - gleam/result + + gleam/result + standard library module contains functions for working with results. Gleam programs will make heavy use of this module to avoid excessive nested case expressions when calling multiple functions that can fail.

- map + + map + updates a value held within the Ok of a result by calling a given function on it. If the result is an error then the function is not called.

- try + + try + runs a result returning function on the value held within an Ok of a result. If the result is an error then the function is not called. This is useful for chaining together multiple function calls that can fail, one after the other, @@ -27,9 +27,9 @@

- unwrap + + unwrap + extracts the success value from a result, or returning a default value if the result is an error.

-- cgit v1.2.3