Kernel

tap/2

tap(value, fun)

Pipes the first argument, value, into the function fun, and returns value itself.

Useful for running synchronous side effects in a pipeline, using the |>/2 operator.