Needlework - tiny package introducing alternative pipe operators to "thread" your returns

Hello everyone.

Recently I published a small package that allows you to thread your function results, introducing several operator macros.
It supports piping into the last parameter, place result of previous function into “_” slots, as well as basic implementation of pipe for {:ok | :error, any} functions.

iex> import Needlework
iex> [1, 2, 3] ~>> Kernel.++([4, 5, 6], _)
[4, 5, 6, 1, 2, 3]

github
hex
hexdocs

4 Likes

Check out my lib as well

1 Like