scala.collection.immutable.Stream
[use case] Builds a new collection by applying a function to all elements of the
outer stream 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 stream 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 stream.
the element type of the returned collection.
the function to apply to each element.
a new stream resulting from applying the given
collection-valued function f
to each element of the
outer stream that satisfies predicate p
and concatenating
the results.
[use case] Applies a function f
to all elements of the outer stream containing
this WithFilter
instance that satisfy predicate p
.
Applies a function f
to all elements of the outer stream 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.
Returns string formatted according to given format
string.
Returns string formatted according to given format
string.
Format strings are as for String.format
(@see java.lang.String.format).
[use case] Builds a new collection by applying a function to all elements of the
outer stream containing this WithFilter
instance that satisfy predicate p
.
Builds a new collection by applying a function to all elements of the
outer stream containing this WithFilter
instance that satisfy predicate p
.
the element type of the returned collection.
the function to apply to each element.
a new stream resulting from applying the given function
f
to each element of the outer stream that satisfies
predicate p
and collecting the results.
Further refines the filter for this stream.
Further refines the filter for this stream.
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 stream which
satisfy the predicate q
in addition to the predicate p
.
A lazier implementation of WithFilter than TraversableLike's.