A decorator that changes the >> operator to mimic Elixir-style function pipes
Project description
Within the decorated function a >> b(...) becomes b(a, ...):
from pipeop import pipes def add3(a, b, c): return a + b + c def times(a, b): return a * b @pipes def calc() print 1 >> add3(2, 3) >> times(3) # prints 18
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pipeop-0.1.6.tar.gz
(1.7 kB
view hashes)