pipe method

Consumer<T> pipe(
  1. Consumer<R> consumer
)

Returns a composed Mapper that calls this Mapper and applies the result to consumer.

Implementation

Consumer<T> pipe(Consumer<R> consumer) => (value) => consumer(this(value));