PipeX<A> extension

Feeds the value into a given function, returning the result of the computation.

Useful for chaining functions, feeding ones result as others input. Also can be used in conjunction with the ?. operator.

on
  • A

Methods

pipe<B>(B f(A a)) → B
Feeds the value into a given function, returning the result of the computation.