From 09af0bb63a55e2e401687b354f380bf26982a01a Mon Sep 17 00:00:00 2001 From: inoas Date: Mon, 4 Apr 2022 22:23:02 +0000 Subject: explicit type --- src/gleam/function.gleam | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 } -- cgit v1.2.3