test method

Predicate<T> test(
  1. Predicate<R> predicate
)

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

Implementation

Predicate<T> test(Predicate<R> predicate) => (value) => predicate(this(value));