scala.collection.generic

class TraversableFactory

[source: scala/collection/generic/TraversableFactory.scala]

abstract class TraversableFactory[CC]
extends Companion[CC]
A template for companion objects of Traversable and subclasses thereof.
Direct Known Subclasses:
Iterable, Traversable, SequenceFactory, Iterable, Traversable, Iterable, Traversable

Method Summary
def concat [A](xss : Traversable[A]*) : CC[A]
Concatenate all the argument collections into a single collection.
def fill [A](n1 : Int, n2 : Int, n3 : Int)(elem : => A) : CC[CC[CC[A]]]
A three-dimensional iterable that contains the results of some element computation a number of times.
def fill [A](n : Int)(elem : => A) : CC[A]
An iterable that contains the results of some element computation a number of times.
def fill [A](n1 : Int, n2 : Int)(elem : => A) : CC[CC[A]]
A two-dimensional iterable that contains the results of some element computation a number of times.
def fill [A](n1 : Int, n2 : Int, n3 : Int, n4 : Int, n5 : Int)(elem : => A) : CC[CC[CC[CC[CC[A]]]]]
A five-dimensional iterable that contains the results of some element computation a number of times.
def fill [A](n1 : Int, n2 : Int, n3 : Int, n4 : Int)(elem : => A) : CC[CC[CC[CC[A]]]]
A four-dimensional iterable that contains the results of some element computation a number of times.
def iterate [A](start : A, len : Int)(f : (A) => A) : CC[A]
An iterable containing repeated applications of a function to a start value.
def range (start : Int, end : Int, step : Int) : CC[Int]
An iterable containing equally spaced values in some integer interval.
def range [A](start : Int, end : Int) : CC[Int]
An iterable containing a sequence of increasing integers in a range.
def tabulate [A](n : Int)(f : (Int) => A) : CC[A]
An iterable containing values of a given function over a range of integer values starting from 0.
def tabulate [A](n1 : Int, n2 : Int, n3 : Int, n4 : Int, n5 : Int)(f : (Int, Int, Int, Int, Int) => A) : CC[CC[CC[CC[CC[A]]]]]
A five-dimensional iterable containing values of a given function over ranges of integer values starting from 0.
def tabulate [A](n1 : Int, n2 : Int, n3 : Int, n4 : Int)(f : (Int, Int, Int, Int) => A) : CC[CC[CC[CC[A]]]]
A four-dimensional iterable containing values of a given function over ranges of integer values starting from 0.
def tabulate [A](n1 : Int, n2 : Int)(f : (Int, Int) => A) : CC[CC[A]]
A two-dimensional iterable containing values of a given function over ranges of integer values starting from 0.
def tabulate [A](n1 : Int, n2 : Int, n3 : Int)(f : (Int, Int, Int) => A) : CC[CC[CC[A]]]
A three-dimensional iterable containing values of a given function over ranges of integer values starting from 0.
Methods inherited from Companion
newBuilder (abstract), empty, apply
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Class Summary
class VirtualBuilderFactory [A] extends BuilderFactory[A, CC[A], CC[Any]] with AnyRef
Method Details
def concat[A](xss : Traversable[A]*) : CC[A]
Concatenate all the argument collections into a single collection.
Parameters
xss - the collections that are to be concatenated
Returns
the concatenation of all the collections

def fill[A](n : Int)(elem : => A) : CC[A]
An iterable that contains the results of some element computation a number of times.
Parameters
n - the number of elements returned
elem - the element computation

def fill[A](n1 : Int, n2 : Int)(elem : => A) : CC[CC[A]]
A two-dimensional iterable that contains the results of some element computation a number of times.
Parameters
n1 - the number of elements in the 1st dimension
n2 - the number of elements in the 2nd dimension
elem - the element computation

def fill[A](n1 : Int, n2 : Int, n3 : Int)(elem : => A) : CC[CC[CC[A]]]
A three-dimensional iterable that contains the results of some element computation a number of times.
Parameters
n1 - the number of elements in the 1st dimension
n2 - the number of elements in the 2nd dimension
n3 - the number of elements in the 3nd dimension
elem - the element computation

def fill[A](n1 : Int, n2 : Int, n3 : Int, n4 : Int)(elem : => A) : CC[CC[CC[CC[A]]]]
A four-dimensional iterable that contains the results of some element computation a number of times.
Parameters
n1 - the number of elements in the 1st dimension
n2 - the number of elements in the 2nd dimension
n3 - the number of elements in the 3nd dimension
n4 - the number of elements in the 4th dimension
elem - the element computation

def fill[A](n1 : Int, n2 : Int, n3 : Int, n4 : Int, n5 : Int)(elem : => A) : CC[CC[CC[CC[CC[A]]]]]
A five-dimensional iterable that contains the results of some element computation a number of times.
Parameters
n1 - the number of elements in the 1st dimension
n2 - the number of elements in the 2nd dimension
n3 - the number of elements in the 3nd dimension
n4 - the number of elements in the 4th dimension
n5 - the number of elements in the 5th dimension
elem - the element computation

def tabulate[A](n : Int)(f : (Int) => A) : CC[A]
An iterable containing values of a given function over a range of integer values starting from 0.
Parameters
n - The number of elements in the iterable
f - The function computing element values
Returns
An iterable consisting of elements `f(0), ..., f(n -1)`

def tabulate[A](n1 : Int, n2 : Int)(f : (Int, Int) => A) : CC[CC[A]]
A two-dimensional iterable containing values of a given function over ranges of integer values starting from 0.
Parameters
n1 - the number of elements in the 1st dimension
n2 - the number of elements in the 2nd dimension
f - The function computing element values

def tabulate[A](n1 : Int, n2 : Int, n3 : Int)(f : (Int, Int, Int) => A) : CC[CC[CC[A]]]
A three-dimensional iterable containing values of a given function over ranges of integer values starting from 0.
Parameters
n1 - the number of elements in the 1st dimension
n2 - the number of elements in the 2nd dimension
n3 - the number of elements in the 3nd dimension
f - The function computing element values

def tabulate[A](n1 : Int, n2 : Int, n3 : Int, n4 : Int)(f : (Int, Int, Int, Int) => A) : CC[CC[CC[CC[A]]]]
A four-dimensional iterable containing values of a given function over ranges of integer values starting from 0.
Parameters
n1 - the number of elements in the 1st dimension
n2 - the number of elements in the 2nd dimension
n3 - the number of elements in the 3nd dimension
n4 - the number of elements in the 4th dimension
f - The function computing element values

def tabulate[A](n1 : Int, n2 : Int, n3 : Int, n4 : Int, n5 : Int)(f : (Int, Int, Int, Int, Int) => A) : CC[CC[CC[CC[CC[A]]]]]
A five-dimensional iterable containing values of a given function over ranges of integer values starting from 0.
Parameters
n1 - the number of elements in the 1st dimension
n2 - the number of elements in the 2nd dimension
n3 - the number of elements in the 3nd dimension
n4 - the number of elements in the 4th dimension
n5 - the number of elements in the 5th dimension
f - The function computing element values

def range[A](start : Int, end : Int) : CC[Int]
An iterable containing a sequence of increasing integers in a range.
Parameters
from - the start value of the iterable
end - the end value of the iterable (the first value NOT returned)
Returns
the iterable with values in range `start, start + 1, ..., end - 1` up to, but exclusding, `end`.

def range(start : Int, end : Int, step : Int) : CC[Int]
An iterable containing equally spaced values in some integer interval.
Parameters
start - the start value of the iterable
end - the end value of the iterable (the first value NOT returned)
step - the increment value of the iterable (must be positive or negative)
Returns
the iterable with values in `start, start + step, ...` up to, but excluding `end`

def iterate[A](start : A, len : Int)(f : (A) => A) : CC[A]
An iterable containing repeated applications of a function to a start value.
Parameters
start - the start value of the iterable
len - the number of elements returned by the iterable
f - the function that's repeatedly applied
Returns
the iterable returning `len` values in the sequence `start, f(start), f(f(start)), ...`