All Projects β†’ vic β†’ pipe_here

vic / pipe_here

Licence: other
An Elixir macro for easily piping arguments at any position.

Programming Languages

elixir
2628 projects

Labels

Projects that are alternatives of or similar to pipe here

pipe
Functional Pipeline in Go
Stars: ✭ 30 (-9.09%)
Mutual labels:  pipe
rocket-pipes
Powerful pipes for TypeScript, that chain Promise and ADT for you 🚌 -> ⛰️ -> 🚠 -> πŸ‚ -> πŸš€
Stars: ✭ 18 (-45.45%)
Mutual labels:  pipe
web pipe
One-way pipe, composable, rack application builder
Stars: ✭ 56 (+69.7%)
Mutual labels:  pipe
ngx-timeago
⏰ Live updating timestamps in Angular 6+
Stars: ✭ 70 (+112.12%)
Mutual labels:  pipe
etran
Erlang Parse Transforms Including Fold (MapReduce) comprehension, Elixir-like Pipeline, and default function arguments
Stars: ✭ 19 (-42.42%)
Mutual labels:  pipe
tpack
Pack a Go workflow/function as a Unix-style pipeline command
Stars: ✭ 55 (+66.67%)
Mutual labels:  pipe
Ngx Order Pipe
β–Ό Angular 5+ orderBy pipe
Stars: ✭ 224 (+578.79%)
Mutual labels:  pipe
annotate-pull-request-from-checkstyle
cs2pr - Annotate a GitHub Pull Request based on a Checkstyle XML-report within your GitHub Action
Stars: ✭ 146 (+342.42%)
Mutual labels:  pipe
lwt-pipe
[beta] A multi-consumer, multi-producers blocking queue and stream for Lwt
Stars: ✭ 30 (-9.09%)
Mutual labels:  pipe
px
ps and top for human beings
Stars: ✭ 151 (+357.58%)
Mutual labels:  pipe
ploot
Plot streaming data from stdin to a tty terminal
Stars: ✭ 54 (+63.64%)
Mutual labels:  pipe
conv3d-video-action-recognition
My experimentation around action recognition in videos. Contains Keras implementation for C3D network based on original paper "Learning Spatiotemporal Features with 3D Convolutional Networks", Tran et al. and it includes video processing pipelines coded using mPyPl package. Model is being benchmarked on popular UCF101 dataset and achieves result…
Stars: ✭ 50 (+51.52%)
Mutual labels:  pipe
pipe
Pipe operator for nim.
Stars: ✭ 51 (+54.55%)
Mutual labels:  pipe
pipeffmpeg
A frontend for ffmpeg using only pipes, not under GPL, but under BSD license.
Stars: ✭ 56 (+69.7%)
Mutual labels:  pipe
pypely
Make your data processing easy
Stars: ✭ 17 (-48.48%)
Mutual labels:  pipe
Termsql
Convert text from a file or from stdin into SQL table and query it instantly. Uses sqlite as backend. The idea is to make SQL into a tool on the command line or in scripts.
Stars: ✭ 230 (+596.97%)
Mutual labels:  pipe
phantomic
Pipe stdin to Phantom.JS
Stars: ✭ 20 (-39.39%)
Mutual labels:  pipe
pipe-trait
Make it possible to chain regular functions
Stars: ✭ 22 (-33.33%)
Mutual labels:  pipe
files-io
Read many files with node
Stars: ✭ 19 (-42.42%)
Mutual labels:  pipe
pjs
An awk-like command-line tool for processing text, CSV, JSON, HTML, and XML.
Stars: ✭ 21 (-36.36%)
Mutual labels:  pipe

PipeHere

help maintain this lib

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:

  1. Add pipe_here to your list of dependencies in mix.exs:
def deps do
  [{:pipe_here, "~> 1.0.0"}]
end

Is it any good?

Yes

γƒžγ‚―γƒ­γ‚Ή Makurosu

[Elixir macros,] The things I do for beautiful code ― George Martin, Game of Thrones

#myelixirstatus #FridayLiterally

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].