Filterable
A trait for filtering container functors.
Instances
instance Filterable[Chain]
Sourceinstance Filterable[DelayList]
Sourceinstance Filterable[List]
Sourceinstance Filterable[Map[k]] with Order[k]
Sourceinstance Filterable[Option]
Sourceinstance Filterable[RedBlackTree[k]] with Order[k]
Sourceinstance Filterable[Vector]
SourceSignatures
def filterMap(f: a -> Option[b] \ ef, t: m[a]): m[b] \ ef + Aef[m] with Filterable[m]
SourceApplies the partial function f
to every element in x
collecting the results.
Trait Definitions
def filter(f: a -> Bool \ ef, t: m[a]): m[a] \ ef + Aef[m] with Filterable[m]
SourceApplies f
to every element in x
. Keeps every element that satisfies f
.