Kernel.then/2
defmodule Kernel do
def then(value, fun)
end
Pipes the first argument, value
, into the function fun
, and returns its result.
This is most commonly used in pipelines, using the |>/2
operator, allowing you to pipe a value to a function outside of its first argument.