Skip to content

Commit 3fe75b5

Browse files
giacomocavalierilpil
authored andcommitted
deprecate function.tap
1 parent f73b1fc commit 3fe75b5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
- The `tap` function from the `function` module has been deprecated.
6+
37
## v0.65.0 - 2025-09-29
48

59
- The performance of the `drop_start` function from the `string` module has

src/gleam/function.gleam

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ pub fn identity(x: a) -> a {
99
///
1010
/// Useful for running synchronous side effects in a pipeline.
1111
///
12+
@deprecated("This function has been deprecated. You can bind the value you want to tap to a variable instead.")
1213
pub fn tap(arg: a, effect: fn(a) -> b) -> a {
1314
effect(arg)
1415
arg

0 commit comments

Comments
 (0)