filter abstract method

HKT<KT, A> filter(
  1. bool f(
    1. A a
    )
)

Filter a data structure based on a boolean predicate.

Implementation

HKT<KT, A> filter(bool Function(A a) f);