pipe method

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

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

Implementation

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