Reverse Pipe

The pipe operator that inserts the incoming argument at the end of the argument list.

Installation

To use the Reverse Pipe with your projects, edit your mix.exs file and add it as a dependency:

def deps do
  [{:reverse_pipe, "~> 0.1"}]
end

Then run mix deps.get

Usage

defmodule MyModule do
  import ReversePipe

  def my_function do
    "world" >>> Map.put(%{a: "hello"}, :b)
  end
end

MyModule.my_function()
# %{a: "hello", b: "world"}