A template trait that contains just themap,flatMap,foreach andwithFilter methods of traitIterable.
Element type (e.g.Int)
Collection type constructor (e.g.List)
Builds a new collection by applying a function to all elements of thefiltered outer collection containing thisWithFilter instance that satisfy
Builds a new collection by applying a function to all elements of thefiltered outer collection containing thisWithFilter instance that satisfy
the element type of the returned collection.
the function to apply to each element.
a new collection resulting from applying the given collection-valued functionf to each element of the filtered outer collection and concatenating the results.
Applies a functionf to all elements of thefiltered outer collection.
Applies a functionf to all elements of thefiltered outer collection.
the type parameter describing the result of functionf. This result will always be ignored. TypicallyU isUnit, but this is not necessary.
the function that is applied for its side-effect to every element. The result of functionf is discarded.
Builds a new collection by applying a function to all elements of thefiltered outer collection.
Builds a new collection by applying a function to all elements of thefiltered outer collection.
the element type of the returned collection.
the function to apply to each element.
a new collection resulting from applying the given functionf to each element of the filtered outer collection and collecting the results.
Further refines the filter for thisfiltered collection.
Further refines the filter for thisfiltered collection.
the predicate used to test elements.
an object of classWithFilter, which supportsmap,flatMap,foreach, andwithFilter operations. All these operations apply to those elements of this collection which also satisfy bothp andq predicates.