diff options
author | inoas <mail@inoas.com> | 2022-04-04 22:23:02 +0000 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2022-04-06 10:58:14 +0100 |
commit | 09af0bb63a55e2e401687b354f380bf26982a01a (patch) | |
tree | 8bac0f9506516a1d77b6f5dd79d879efc5c82252 /src | |
parent | cbcbe39212027c9aea913df6d00585421156493c (diff) | |
download | gleam_stdlib-09af0bb63a55e2e401687b354f380bf26982a01a.tar.gz gleam_stdlib-09af0bb63a55e2e401687b354f380bf26982a01a.zip |
explicit type
Diffstat (limited to 'src')
-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 } |