pipe_here alternatives and similar packages
Based on the "Macros" category.
Alternatively, view pipe_here alternatives based on common mentions on social networks and blogs.
-
typed_struct
An Elixir library for defining structs with a type without writing boilerplate code. -
shorter_maps
Elixir ~M sigil for map shorthand. `~M{id, name} ~> %{id: id, name: name}` -
eventsourced
Functional domain models with event sourcing in Elixir -
ok_jose
Pipe elixir functions that match ok/error tuples or custom patterns. -
crudry
Elixir library for DRYing CRUD in Phoenix Contexts and Absinthe Resolvers. -
pipe_to
The enhanced elixir pipe operator which can specify the target position -
pattern_tap
Macro for tapping into a pattern match while using the pipe operator -
guardsafe
Macros expanding into code that can be safely used in guard clauses. -
rulex
This tiny library (2 macros only) allows you to define very simple rule handler using Elixir pattern matching. -
apix
Simple convention and DSL for transformation of elixir functions to an API for later documentation and or validation. -
Bang
Bang simply adds dynamic bang! functions to your existing module functions with after-callback. -
backports
Ensure backwards compatibility even if newer functions are used
Access the most powerful time series database as a service
Do you think we are missing an alternative of pipe_here or a related project?
Popular Comparisons
README
PipeHere
An Elixir macro for easily piping arguments at any position.
Usage
import PipeHere
The pipe_here
macro lets you specify the argument position
while piping values by using the _
placeholder.
For example:
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:
2 |> x(1, _, 3) |> pipe_here
Note that while you can do stuff like:
a |> b(1, _) |> c |> d.(2, _, 3) |> pipe_here
every member of the pipe can at most have just one _
placeholder.
Installation
Available in Hex, the package can be installed as:
- Add pipe_here to your list of dependencies in
mix.exs
:
def deps do
[{:pipe_here, "~> 1.0.0"}]
end
Is it any good?
マクロス Makurosu
[Elixir macros,] The things I do for beautiful code ― George Martin, Game of Thrones