scala.collection.generic

class TraversableFactory

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

abstract class TraversableFactory[CC]
extends GenericCompanion[CC]
A template for companion objects of Traversable and subclasses thereof.
Since
2.8
Direct Known Subclasses:
Iterable, Traversable, SeqFactory, 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, n4 : Int)(elem : => A) : CC[CC[CC[CC[A]]]]
A four-dimensional traversable 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 traversable 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 traversable that contains the results of some element computation a number of times.
def fill [A](n1 : Int, n2 : Int, n3 : Int)(elem : => A) : CC[CC[CC[A]]]
A three-dimensional traversable that contains the results of some element computation a number of times.
def fill [A](n : Int)(elem : => A) : CC[A]
A traversable that contains the results of some element computation a number of times.
def iterate [A](start : A, len : Int)(f : (A) => A) : CC[A]
A traversable containing repeated applications of a function to a start value.
def range (start : Int, end : Int, step : Int) : CC[Int]
A traversable containing equally spaced values in some integer interval.
def range (start : Int, end : Int) : CC[Int]
A traversable containing a sequence of increasing integers in a range.
def tabulate [A](n1 : Int, n2 : Int, n3 : Int)(f : (Int, Int, Int) => A) : CC[CC[CC[A]]]
A three-dimensional traversable 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, n5 : Int)(f : (Int, Int, Int, Int, Int) => A) : CC[CC[CC[CC[CC[A]]]]]
A five-dimensional traversable containing values of a given function over ranges of integer values starting from 0.
def tabulate [A](n : Int)(f : (Int) => A) : CC[A]
A traversable 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)(f : (Int, Int, Int, Int) => A) : CC[CC[CC[CC[A]]]]
A four-dimensional traversable 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 traversable containing values of a given function over ranges of integer values starting from 0.
Methods inherited from GenericCompanion
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 GenericCanBuildFrom [A] extends CanBuildFrom[CC[Any], A, CC[A]] 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]
A traversable 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 traversable 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 traversable 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 traversable 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 traversable 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]
A traversable containing values of a given function over a range of integer values starting from 0.
Parameters
n - The number of elements in the traversable
f - The function computing element values
Returns
A traversable 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 traversable 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 traversable 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 traversable 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 traversable 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(start : Int, end : Int) : CC[Int]
A traversable containing a sequence of increasing integers in a range.
Parameters
from - the start value of the traversable
end - the end value of the traversable (the first value NOT returned)
Returns
the traversable with values in range `start, start + 1, ..., end - 1` up to, but exclusding, `end`.

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

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