[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 element type of the returned collection.
the function to apply to each element.
a new collection of type That
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.
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 class of the returned collection. Where possible, That
is
the same class as the current collection class Repr
, but this
depends on the element type B
being admissible for that class,
which means that an implicit instance of type CanBuildFrom[Repr, B, That]
is found.
the function to apply to each element.
an implicit value of class CanBuildFrom
which determines
the result class That
from the current representation type Repr
and
and the new element type B
.
a new collection of type That
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.
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 type parameter describing the result of function f
.
This result will always be ignored. Typically U
is Unit
,
but this is not necessary.
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 collection of type That
resulting from applying
the given function f
to each element of the outer traversable collection
that satisfies predicate p
and collecting 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
.
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 class of the returned collection. Where possible, That
is
the same class as the current collection class Repr
, but this
depends on the element type B
being admissible for that class,
which means that an implicit instance of type CanBuildFrom[Repr, B, That]
is found.
the function to apply to each element.
an implicit value of class CanBuildFrom
which determines
the result class That
from the current representation type Repr
and
and the new element type B
.
a new collection of type That
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
.