fromPredicateK<A> function

TaskOption<A> Function(A a) fromPredicateK<A>(
  1. bool predicate(
    1. A value
    )
)

Returns a Some or None if the predicate returns true or false respectively.

Implementation

TaskOption<A> Function(A a) fromPredicateK<A>(
  bool Function(A value) predicate,
) =>
    (a) => fromPredicate(a, predicate);