Packages

class WithFilter[+A, +IterableCC[_], +CC[X] <: SortedSet[X]] extends IterableOps.WithFilter[A, IterableCC]

Specialize WithFilter for sorted collections

Source
SortedSet.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WithFilter
  2. WithFilter
  3. WithFilter
  4. Serializable
  5. AnyRef
  6. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new WithFilter(self: SortedSetOps[A, CC, _] with IterableOps[A, IterableCC, _], p: (A) => Boolean)

Value Members

  1. def flatMap[B](f: (A) => IterableOnce[B])(implicit arg0: Ordering[B]): CC[B]
  2. def flatMap[B](f: (A) => IterableOnce[B]): IterableCC[B]

    Builds a new collection by applying a function to all elements of the filtered outer sorted collection containing this WithFilter instance that satisfy

    Builds a new collection by applying a function to all elements of the filtered outer sorted collection containing this WithFilter instance that satisfy

    B

    the element type of the returned collection.

    f

    the function to apply to each element.

    returns

    a new sorted collection resulting from applying the given collection-valued function f to each element of the filtered outer sorted collection and concatenating the results.

    Definition Classes
    WithFilterWithFilter
  3. def foreach[U](f: (A) => U): Unit

    Applies a function f to all elements of the filtered outer sorted collection.

    Applies a function f to all elements of the filtered outer sorted collection.

    U

    the type parameter describing the result of function f. This result will always be ignored. Typically U is Unit, but this is not necessary.

    f

    the function that is applied for its side-effect to every element. The result of function f is discarded.

    Definition Classes
    WithFilterWithFilter
  4. def map[B](f: (A) => B)(implicit arg0: Ordering[B]): CC[B]
  5. def map[B](f: (A) => B): IterableCC[B]

    Builds a new collection by applying a function to all elements of the filtered outer sorted collection.

    Builds a new collection by applying a function to all elements of the filtered outer sorted collection.

    B

    the element type of the returned collection.

    f

    the function to apply to each element.

    returns

    a new sorted collection resulting from applying the given function f to each element of the filtered outer sorted collection and collecting the results.

    Definition Classes
    WithFilterWithFilter
  6. def withFilter(q: (A) => Boolean): WithFilter[A, IterableCC, CC]

    Further refines the filter for this filtered sorted collection.

    Further refines the filter for this filtered sorted collection.

    q

    the predicate used to test elements.

    returns

    an object of class WithFilter, which supports map, flatMap, foreach, and withFilter operations. All these operations apply to those elements of this sorted collection which also satisfy both p and q predicates.

    Definition Classes
    WithFilterWithFilterWithFilter