diff options
author | inoas <mail@inoas.com> | 2023-04-17 17:32:55 +0000 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2023-04-19 08:21:15 +0100 |
commit | df2e0d8074c722d84ac3c870d5122b3897a25b96 (patch) | |
tree | 1dbdc0ab45e6ee5c4f4130abca2d903466849185 /src | |
parent | 87ba58bdca14fa84762a7b41bd25aad2dd90c95e (diff) | |
download | gleam_stdlib-df2e0d8074c722d84ac3c870d5122b3897a25b96.tar.gz gleam_stdlib-df2e0d8074c722d84ac3c870d5122b3897a25b96.zip |
Update src/gleam/result.gleam
Co-authored-by: Louis Pilfold <louis@lpil.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/gleam/result.gleam | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/gleam/result.gleam b/src/gleam/result.gleam index 42f3189..3bc1884 100644 --- a/src/gleam/result.gleam +++ b/src/gleam/result.gleam @@ -156,16 +156,6 @@ pub fn flatten(result: Result(Result(a, e), e)) -> Result(a, e) { /// Error(Nil) /// ``` /// -/// `result.try` can be utilized the way -/// ancient Gleam's `try` used to work: -/// -/// ```text -/// // Ancient try -/// try file = open_file() -/// // ... can be mimicked like so: -/// use file <- try(open_file()) -/// ``` -/// pub fn try( result: Result(a, e), apply fun: fn(a) -> Result(b, e), |