Packages

object TreeSet extends SortedIterableFactory[TreeSet]

This object provides a set of operations to create immutable.TreeSet values.

Annotations
@SerialVersionUID()
Source
TreeSet.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TreeSet
  2. SortedIterableFactory
  3. EvidenceIterableFactory
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def apply[A](xs: A*)(implicit arg0: Ordering[A]): TreeSet[A]
    Definition Classes
    EvidenceIterableFactory
  2. def empty[A](implicit arg0: Ordering[A]): TreeSet[A]
    Definition Classes
    TreeSetEvidenceIterableFactory
  3. implicit def evidenceIterableFactory[A](implicit arg0: Ordering[A]): Factory[A, TreeSet[A]]
    Definition Classes
    EvidenceIterableFactory
  4. def fill[A](n: Int)(elem: => A)(implicit arg0: Ordering[A]): TreeSet[A]

    Produces a immutable tree set containing the results of some element computation a number of times.

    Produces a immutable tree set containing the results of some element computation a number of times.

    n

    the number of elements contained in the immutable tree set.

    elem

    the element computation

    returns

    A immutable tree set that contains the results of n evaluations of elem.

    Definition Classes
    EvidenceIterableFactory
  5. def from[E](it: IterableOnce[E])(implicit ordering: Ordering[E]): TreeSet[E]
    Definition Classes
    TreeSetEvidenceIterableFactory
  6. def iterate[A](start: A, len: Int)(f: (A) => A)(implicit arg0: Ordering[A]): TreeSet[A]

    Produces a immutable tree set containing repeated applications of a function to a start value.

    Produces a immutable tree set containing repeated applications of a function to a start value.

    start

    the start value of the immutable tree set

    len

    the number of elements contained in the immutable tree set

    f

    the function that's repeatedly applied

    returns

    a immutable tree set with len values in the sequence start, f(start), f(f(start)), ...

    Definition Classes
    EvidenceIterableFactory
  7. def newBuilder[A](implicit ordering: Ordering[A]): ReusableBuilder[A, TreeSet[A]]
    Definition Classes
    TreeSetEvidenceIterableFactory
  8. def tabulate[A](n: Int)(f: (Int) => A)(implicit arg0: Ordering[A]): TreeSet[A]

    Produces a immutable tree set containing values of a given function over a range of integer values starting from 0.

    Produces a immutable tree set containing values of a given function over a range of integer values starting from 0.

    n

    The number of elements in the immutable tree set

    f

    The function computing element values

    returns

    A immutable tree set consisting of elements f(0), ..., f(n -1)

    Definition Classes
    EvidenceIterableFactory
  9. def unfold[A, S](init: S)(f: (S) => Option[(A, S)])(implicit arg0: Ordering[A]): TreeSet[A]

    Produces a immutable tree set that uses a function f to produce elements of type A and update an internal state of type S.

    Produces a immutable tree set that uses a function f to produce elements of type A and update an internal state of type S.

    A

    Type of the elements

    S

    Type of the internal state

    init

    State initial value

    f

    Computes the next element (or returns None to signal the end of the collection)

    returns

    a immutable tree set that produces elements using f until f returns None

    Definition Classes
    EvidenceIterableFactory