README.md

# PipeHere

An Elixir macro for easily piping arguments at any position.

## Usage

```elixir
import PipeHere
```

The `pipe_here` macro lets you specify the argument position
while piping values by using the `_` placeholder.

For example:

```elixir
pipe_here( 2 |> x(1, _, 3) )

# expands to

x(1, 2, 3)
```

The `pipe_here` macro can also be used at the end of a pipe:

```elixir
2 |> x(1, _, 3) |> pipe_here
```

Note that while you can do stuff like:

```elixir
a |> b(1, _) |> c(_, 2) |> pipe_here
```

every member of the pipe can at most have a one `_` placeholder.


## Installation

[Available in Hex](https://hex.pm/packages/pipe_here), the package can be installed as:

  1. Add pipe_here to your list of dependencies in `mix.exs`:

```elixir
def deps do
  [{:pipe_here, "~> 0.0.1"}]
end
```