From df2e0d8074c722d84ac3c870d5122b3897a25b96 Mon Sep 17 00:00:00 2001 From: inoas Date: Mon, 17 Apr 2023 17:32:55 +0000 Subject: Update src/gleam/result.gleam Co-authored-by: Louis Pilfold --- src/gleam/result.gleam | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src') 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), -- cgit v1.2.3