On this page
Class WithFilter.WithFilter
abstract class WithFilter[+A, +CC[_]] extends Serializable
A template trait that contains just the map, flatMap, foreach and withFilter methods of trait Iterable.
| Type parameters |
|
|---|---|
| Supertypes | |
| Known subtypes |
Abstract methods
Source
def flatMap[B](f: A => IterableOnce[B]): CC[B]
Builds a new collection by applying a function to all elements of the filtered outer collection containing this WithFilter instance that satisfy
| Type parameters |
|
|---|---|
| Value parameters |
|
| Returns | a new collection resulting from applying the given collection-valued function |
Source
Applies a function f to all elements of the filtered outer collection.
| Type parameters |
|
|---|---|
| Value parameters |
|
Source
def map[B](f: A => B): CC[B]
Builds a new collection by applying a function to all elements of the filtered outer collection.
| Type parameters |
|
|---|---|
| Value parameters |
|
| Returns | a new collection resulting from applying the given function |
Source
Further refines the filter for this filtered collection.
| Value parameters |
|
|---|---|
| Returns | an object of class |
© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.2.0/scala/collection/WithFilter.html