Into
Collect the result of a pipe expression into a variable with ~>
import Into, only: [~>: 2]
[1, 2, 3]
|> Enum.reduce(&+/2)
~> sum
sum == 6Installation
The package can be installed by adding into to your list of dependencies in
mix.exs:
def deps do
[
{:into, "~> 0.1.0"}
]
end