Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Unreleased

- The `tap` function from the `function` module has been deprecated.

## v0.65.0 - 2025-09-29

- The performance of the `drop_start` function from the `string` module has
Expand Down
1 change: 1 addition & 0 deletions src/gleam/function.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pub fn identity(x: a) -> a {
///
/// Useful for running synchronous side effects in a pipeline.
///
@deprecated("This function has been deprecated. You can bind the value you want to tap to a variable instead.")
pub fn tap(arg: a, effect: fn(a) -> b) -> a {
effect(arg)
arg
Expand Down