Reverse Pipe v0.1.0 ReversePipe View Source
Documentation for the Reverse Pipe operator
Link to this section Summary
Link to this section Functions
Link to this macro
left >>> right View Source (macro)
Reverse Pipe operator
This operator will insert the result of the right-hand side function call to the end of the left-hand side expression's argument list.
iex> 1 >>> Map.put(%{}, :b)
#=> %{b: 1}
Link to this function
unpipe(expr) View Source
Breaks a pipeline expression into a list.
iex> ReversePipe.unpipe(quote do: 5 >>> div(100))
#=> [{5, 0}, {{:div, [], [100]}, 0}]