and method

bool Function(P) and(
  1. bool predicate(
    1. P p
    )
)

Compose using && this function with predicate.

Implementation

bool Function(P) and(bool Function(P p) predicate) =>
    (p) => this(p) && predicate(p);