Needlework brings additional operators to Elixir that allows you to "thread" results of your functions into other function calls. Basically extending the Kernel.|>/2 operator.
Just use Needlework in your modules and thread away!
Example:
defmoduleMyModuledouseNeedlework@specfoo(func::fun())::list()deffoo(func)dofunc~>Enum.map([1,2,3])endendCheck the full documentation
Inspired by an awesome dash
The package can be installed by adding needlework to your list of dependencies in mix.exs:
defdepsdo[{:needlework,"~> 1.0.0"}]end