Kernel.tap/2
defmodule Kernel do
def tap(value, fun)
end
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.
defmodule Kernel do
def tap(value, fun)
end
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.