diff options
-rw-r--r-- | src/gleam/function.gleam | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gleam/function.gleam b/src/gleam/function.gleam index 007eded..1ee8d9c 100644 --- a/src/gleam/function.gleam +++ b/src/gleam/function.gleam @@ -63,7 +63,7 @@ pub fn constant(value: a) -> fn(b) -> a { /// calls that function with that argument /// and returns that argument instead of the function return value. /// Useful for running synchronous side effects in a pipeline. -pub fn tap (arg, effect: fn (a) -> b) -> a { +pub fn tap (arg: a, effect: fn (a) -> b) -> a { effect(arg) arg } |