[use case] Builds a new collection by applying a function to all elements of the
outer traversable collection containing this WithFilter
instance that satisfy
predicate p
and concatenating the results.
Builds a new collection by applying a function to all elements of the
outer traversable collection containing this WithFilter
instance that satisfy
predicate p
and concatenating the results.
The type of the resulting collection will be guided by the static type of the outer traversable collection.
the element type of the returned collection.
the function to apply to each element.
a new traversable collection resulting from applying the given
collection-valued function f
to each element of the
outer traversable collection that satisfies predicate p
and concatenating
the results.
[use case] Applies a function f
to all elements of the outer traversable collection containing
this WithFilter
instance that satisfy predicate p
.
Applies a function f
to all elements of the outer traversable collection containing
this WithFilter
instance that satisfy predicate p
.
the function that is applied for its side-effect to every element.
The result of function f
is discarded.
[use case] Builds a new collection by applying a function to all elements of the
outer traversable collection containing this WithFilter
instance that satisfy predicate p
.
Builds a new collection by applying a function to all elements of the
outer traversable collection containing this WithFilter
instance that satisfy predicate p
.
the element type of the returned collection.
the function to apply to each element.
a new traversable collection resulting from applying the given function
f
to each element of the outer traversable collection that satisfies
predicate p
and collecting the results.
Further refines the filter for this traversable collection.
Further refines the filter for this traversable collection.
the predicate used to test elements.
an object of class WithFilter
, which supports
map
, flatMap
, foreach
, and withFilter
operations.
All these operations apply to those elements of this traversable collection which
satisfy the predicate q
in addition to the predicate p
.
A class supporting filtered operations. Instances of this class are returned by method
withFilter
.