We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f73b1fc commit 3fe75b5Copy full SHA for 3fe75b5
CHANGELOG.md
@@ -1,5 +1,9 @@
1
# Changelog
2
3
+## Unreleased
4
+
5
+- The `tap` function from the `function` module has been deprecated.
6
7
## v0.65.0 - 2025-09-29
8
9
- The performance of the `drop_start` function from the `string` module has
src/gleam/function.gleam
@@ -9,6 +9,7 @@ pub fn identity(x: a) -> a {
///
10
/// Useful for running synchronous side effects in a pipeline.
11
12
+@deprecated("This function has been deprecated. You can bind the value you want to tap to a variable instead.")
13
pub fn tap(arg: a, effect: fn(a) -> b) -> a {
14
effect(arg)
15
arg
0 commit comments