From 242f80a4cf2077c22b8255ff26972f662d160f11 Mon Sep 17 00:00:00 2001 From: inoas Date: Mon, 17 Apr 2023 17:36:25 +0000 Subject: Update result.gleam --- src/gleam/result.gleam | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gleam/result.gleam b/src/gleam/result.gleam index 402886b..4e99f13 100644 --- a/src/gleam/result.gleam +++ b/src/gleam/result.gleam @@ -168,7 +168,10 @@ pub fn try( /// An alias for `try`. See the documentation for that function for more information. /// -pub fn then(result, fun) { +pub fn then( + result: Result(a, e), + apply fun: fn(a) -> Result(b, e), +) try(result, fun) } -- cgit v1.2.3