pipei 0.1.1

Similar to the tap crate; a generic alternative to Tap’s pipe method.
Documentation

pipei

pipei provides pipe-style partial application combinators.

For each arity i ≥ 0, enabling feature "i" exports:

  • Pipe{i}Ref — borrow-based pipes
  • Pipe{i} — by-value pipes

Laws (schematic):

self.pipe{i}(f)(a1..ai)                = f(self,            a1..ai)
self.pipe{i}_with(proj, f)(a1..ai)     = f(proj(&self),     a1..ai)
self.pipe{i}_with_mut(proj, f)(a1..ai) = f(proj(&mut self), a1..ai)

Only the arities whose numeric feature is enabled are compiled.