map<R> method

Mapper<T, R> map<R>(
  1. Mapper<bool, R> next
)

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

Implementation

Mapper<T, R> map<R>(Mapper<bool, R> next) => (value) => next(this(value));