Packages

  • package root

    This is the documentation for the Scala standard library.

    This is the documentation for the Scala standard library.

    Package structure

    The scala package contains core types like Int, Float, Array or Option which are accessible in all Scala compilation units without explicit qualification or imports.

    Notable packages include:

    Other packages exist. See the complete list on the right.

    Additional parts of the standard library are shipped as separate libraries. These include:

    • scala.reflect - Scala's reflection API (scala-reflect.jar)
    • scala.xml - XML parsing, manipulation, and serialization (scala-xml.jar)
    • scala.collection.parallel - Parallel collections (scala-parallel-collections.jar)
    • scala.util.parsing - Parser combinators (scala-parser-combinators.jar)
    • scala.swing - A convenient wrapper around Java's GUI framework called Swing (scala-swing.jar)

    Automatic imports

    Identifiers in the scala package and the scala.Predef object are always in scope by default.

    Some of these identifiers are type aliases provided as shortcuts to commonly used classes. For example, List is an alias for scala.collection.immutable.List.

    Other aliases refer to classes provided by the underlying platform. For example, on the JVM, String is an alias for java.lang.String.

    Definition Classes
    root
  • package scala

    Core Scala types.

    Core Scala types. They are always available without an explicit import.

    Definition Classes
    root
  • package collection
    Definition Classes
    scala
  • object SortedIterableFactory extends java.io.Serializable
    Definition Classes
    collection
  • Delegate

class Delegate[CC[_]] extends EvidenceIterableFactory.Delegate[CC, Ordering] with SortedIterableFactory[CC]

Annotations
@SerialVersionUID()
Source
Factory.scala
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Delegate
  2. SortedIterableFactory
  3. Delegate
  4. EvidenceIterableFactory
  5. Serializable
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Delegate(delegate: EvidenceIterableFactory[CC, Ordering])

Value Members

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

    Produces a collection containing the results of some element computation a number of times.

    Produces a collection containing the results of some element computation a number of times.

    n

    the number of elements contained in the collection.

    elem

    the element computation

    returns

    A collection that contains the results of n evaluations of elem.

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

    Produces a collection containing repeated applications of a function to a start value.

    Produces a collection containing repeated applications of a function to a start value.

    start

    the start value of the collection

    len

    the number of elements contained in the collection

    f

    the function that's repeatedly applied

    returns

    a collection with len values in the sequence start, f(start), f(f(start)), ...

    Definition Classes
    EvidenceIterableFactory
  7. def newBuilder[A](implicit arg0: Ordering[A]): Builder[A, CC[A]]
    Definition Classes
    DelegateEvidenceIterableFactory
  8. def tabulate[A](n: Int)(f: (Int) => A)(implicit arg0: Ordering[A]): CC[A]

    Produces a collection containing values of a given function over a range of integer values starting from 0.

    Produces a collection containing values of a given function over a range of integer values starting from 0.

    n

    The number of elements in the collection

    f

    The function computing element values

    returns

    A collection 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]): CC[A]

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

    Produces a collection 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 collection that produces elements using f until f returns None

    Definition Classes
    EvidenceIterableFactory