WithFilter
A lazy filtered string.
A lazy filtered string. No filtering is applied until one of foreach
, map
or flatMap
is called.
Value members
Concrete methods
Builds a new collection by applying a function to all chars of this filtered string and using the elements of the resulting collections.
Builds a new collection by applying a function to all chars of this filtered string and using the elements of the resulting collections.
- Value Params
- f
the function to apply to each char.
- Returns
a new collection resulting from applying the given collection-valued function
f
to each char of this string and concatenating the results.
Builds a new string by applying a function to all chars of this filtered string and using the elements of the resulting Strings.
Builds a new string by applying a function to all chars of this filtered string and using the elements of the resulting Strings.
- Value Params
- f
the function to apply to each char.
- Returns
a new string resulting from applying the given string-valued function
f
to each char of this string and concatenating the results.
Apply f
to each element for its side effects.
Apply f
to each element for its side effects.
Note: [U] parameter needed to help scalac's type inference.
Builds a new collection by applying a function to all chars of this filtered string.
Builds a new collection by applying a function to all chars of this filtered string.
- Value Params
- f
the function to apply to each char.
- Returns
a new collection resulting from applying the given function
f
to each char of this string and collecting the results.
Builds a new string by applying a function to all chars of this filtered string.
Builds a new string by applying a function to all chars of this filtered string.
- Value Params
- f
the function to apply to each char.
- Returns
a new string resulting from applying the given function
f
to each char of this string and collecting the results.