Packages

trait EvidenceIterableFactory[+CC[_], Ev[_]] extends Serializable

Base trait for companion objects of collections that require an implicit evidence.

CC

Collection type constructor (e.g. ArraySeq)

Ev

Unary type constructor for the implicit evidence required for an element type (typically Ordering or ClassTag)

Source
Factory.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EvidenceIterableFactory
  2. Serializable
  3. AnyRef
  4. 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

Abstract Value Members

  1. abstract def empty[A](implicit arg0: Ev[A]): CC[A]
  2. abstract def from[E](it: IterableOnce[E])(implicit arg0: Ev[E]): CC[E]
  3. abstract def newBuilder[A](implicit arg0: Ev[A]): Builder[A, CC[A]]

Concrete Value Members

  1. def apply[A](xs: A*)(implicit arg0: Ev[A]): CC[A]
  2. implicit def evidenceIterableFactory[A](implicit arg0: Ev[A]): Factory[A, CC[A]]
  3. def fill[A](n: Int)(elem: => A)(implicit arg0: Ev[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.

  4. def iterate[A](start: A, len: Int)(f: (A) => A)(implicit arg0: Ev[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)), ...

  5. def tabulate[A](n: Int)(f: (Int) => A)(implicit arg0: Ev[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)

  6. def unfold[A, S](init: S)(f: (S) => Option[(A, S)])(implicit arg0: Ev[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