Concatenates this immutable sequence with the elements of a traversable collection.

Concatenates this immutable sequence with the elements of a traversable collection.

B

the element type of the returned collection.

That

the class of the returned collection. Where possible, That is
the same class as the current collection class Repr, but this
depends on the element type B being admissible for that class,
which means that an implicit instance of type CanBuildFrom[Repr, B, That] is found.

that

the traversable to append.

bf

an implicit value of class CanBuildFrom which determines the
result class That from the current representation type Repr and the new element type B.

returns

a new collection of type That which contains all elements of this immutable sequence
followed by all elements of that.

the class of the returned collection. Where possible, That is
the same class as the current collection class Repr, but this
depends on the element type B being admissible for that class,
which means that an implicit instance of type CanBuildFrom[Repr, B, That] is found.

elem

the prepended element

bf

an implicit value of class CanBuildFrom which determines the
result class That from the current representation type Repr and the new element type B.

returns

a new collection of type That consisting of elem followed
by all elements of this immutable sequence.

def/:[B](z: B)(op: (B, A) ⇒ B): B

Applies a binary operator to a start value and all elements of this immutable sequence, going left to right.

Applies a binary operator to a start value and all elements of this immutable sequence, going left to right.

Note: /: is alternate syntax for foldLeft; z /: xs is the same as xs foldLeft z.

B

the result type of the binary operator.

z

the start value.

op

the binary operator.

returns

the result of inserting op between consecutive elements of this immutable sequence,
going left to right with the start value z on the left:
op(...op(op(z, x1), x2), ..., xn)
where x,,1,,, ..., x,,n,, are the elements of this immutable sequence.

the class of the returned collection. Where possible, That is
the same class as the current collection class Repr, but this
depends on the element type B being admissible for that class,
which means that an implicit instance of type CanBuildFrom[Repr, B, That] is found.

elem

the appended element

bf

an implicit value of class CanBuildFrom which determines the
result class That from the current representation type Repr and the new element type B.

returns

a new collection of type That consisting of
all elements of this immutable sequence followed by elem.

def:\[B](z: B)(op: (A, B) ⇒ B): B

Applies a binary operator to all elements of this immutable sequence and a start value, going right to left.

Applies a binary operator to all elements of this immutable sequence and a start value, going right to left.

Note: :\ is alternate syntax for foldRight; xs :\ z is the same as xs foldRight z.

B

the result type of the binary operator.

z

the start value

op

the binary operator

returns

the result of inserting op between consecutive elements of this immutable sequence,
going right to left with the start value z on the right:
op(x1, op(x2, ... op(xn, z)...))
where x,,1,,, ..., x,,n,, are the elements of this immutable sequence.

def==(arg0: AnyRef): Boolean

o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

arg0

the object to compare against this object for equality.

returns

true if the receiver object is equivalent to the argument; false otherwise.

attributes: final

definition classes: AnyRef

def==(arg0: Any): Boolean

o == arg0 is the same as o.equals(arg0).

o == arg0 is the same as o.equals(arg0).

arg0

the object to compare against this object for equality.

returns

true if the receiver object is equivalent to the argument; false otherwise.

attributes: final

definition classes: Any

defaddString(b: StringBuilder): StringBuilder

Appends all elements of this immutable sequence to a string builder.

Appends all elements of this immutable sequence to a string builder.
The written text consists of the string representations (w.r.t. the method toString)
of all elements of this immutable sequence without any separator string.

defaddString(b: StringBuilder, sep: String): StringBuilder

Appends all elements of this immutable sequence to a string builder using a separator string.

Appends all elements of this immutable sequence to a string builder using a separator string.
The written text consists of the string representations (w.r.t. the method toString)
of all elements of this immutable sequence, separated by the string sep.

Appends all elements of this immutable sequence to a string builder using start, end, and separator strings.

Appends all elements of this immutable sequence to a string builder using start, end, and separator strings.
The written text begins with the string start and ends with the string
end. Inside, the string representations (w.r.t. the method toString)
of all elements of this immutable sequence are separated by the string sep.

defasInstanceOf[T0]: T0

This method is used to cast the receiver object to be of type T0.

This method is used to cast the receiver object to be of type T0.

Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expressionList(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as
part of compilation it is not possible to check whether the contents of the list are of the requested typed.

returns

the receiver object.

attributes: final

definition classes: Any

defcanEqual(that: Any): Boolean

Method called from equality methods, so that user-defined subclasses can
refuse to be equal to other collections of the same kind.

Method called from equality methods, so that user-defined subclasses can
refuse to be equal to other collections of the same kind.

that

The object with which this immutable sequence should be compared

returns

true, if this immutable sequence can possibly equal that, false otherwise. The test
takes into consideration only the run-time types of objects but ignores their elements.

Builds a new collection by applying a partial function to all elements of this immutable sequence
on which the function is defined.

Builds a new collection by applying a partial function to all elements of this immutable sequence
on which the function is defined.

B

the element type of the returned collection.

That

the class of the returned collection. Where possible, That is
the same class as the current collection class Repr, but this
depends on the element type B being admissible for that class,
which means that an implicit instance of type CanBuildFrom[Repr, B, That] is found.

pf

the partial function which filters and maps the immutable sequence.

bf

an implicit value of class CanBuildFrom which determines the
result class That from the current representation type Repr and the new element type B.

returns

a new collection of type That resulting from applying the partial function
pf to each element on which it is defined and collecting the results.
The order of the elements is preserved.

Copies elements of this immutable sequence to an array.
Fills the given array xs with at most len elements of
this immutable sequence, starting at position start.
Copying will stop once either the end of the current immutable sequence is reached,
or the end of the array is reached, or len elements have been copied.

Copies elements of this immutable sequence to an array.
Fills the given array xs with at most len elements of
this immutable sequence, starting at position start.
Copying will stop once either the end of the current immutable sequence is reached,
or the end of the array is reached, or len elements have been copied.

Copies values of this immutable sequence to an array.
Fills the given array xs with values of this immutable sequence.
Copying will stop once either the end of the current immutable sequence is reached,
or the end of the array is reached.

Copies values of this immutable sequence to an array.
Fills the given array xs with values of this immutable sequence.
Copying will stop once either the end of the current immutable sequence is reached,
or the end of the array is reached.

Copies values of this immutable sequence to an array.
Fills the given array xs with values of this immutable sequence, after skipping start values.
Copying will stop once either the end of the current immutable sequence is reached,
or the end of the array is reached.

Copies values of this immutable sequence to an array.
Fills the given array xs with values of this immutable sequence, after skipping start values.
Copying will stop once either the end of the current immutable sequence is reached,
or the end of the array is reached.

[use case] Computes the multiset difference between this immutable sequence and another sequence.

[use case]

Computes the multiset difference between this immutable sequence and another sequence.

that

the sequence of elements to remove

returns

a new immutable sequence which contains all elements of this immutable sequence
except some of occurrences of elements that also appear in that.
If an element value x appears
n times in that, then the first n occurrences of x will not form
part of the result, but any following occurrences will.

Computes the multiset difference between this immutable sequence and another sequence.

Computes the multiset difference between this immutable sequence and another sequence.

B

the element type of the returned immutable sequence.

that

the sequence of elements to remove

returns

a new collection of type That which contains all elements of this immutable sequence
except some of occurrences of elements that also appear in that.
If an element value x appears
n times in that, then the first n occurrences of x will not form
part of the result, but any following occurrences will.

defeq(arg0: AnyRef): Boolean

This method is used to test whether the argument (arg0) is a reference to the
receiver object (this).

This method is used to test whether the argument (arg0) is a reference to the
receiver object (this).

The eq method implements an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation] on
non-null instances of AnyRef:
* It is reflexive: for any non-null instance x of type AnyRef, x.eq(x) returns true.
* It is symmetric: for any non-null instances x and y of type AnyRef, x.eq(y) returns true if and
only if y.eq(x) returns true.
* It is transitive: for any non-null instances x, y, and z of type AnyRef if x.eq(y) returns true and y.eq(z) returns true, then x.eq(z) returns true.

Additionally, the eq method has three other properties.
* It is consistent: for any non-null instances x and y of type AnyRef, multiple invocations of
x.eq(y) consistently returns true or consistently returns false.
* For any non-null instance x of type AnyRef, x.eq(null) and null.eq(x) returns false.
* null.eq(null) returns true.

When overriding the equals or hashCode methods, it is important to ensure that their behavior is
consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they
should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).

arg0

the object to compare against this object for reference equality.

returns

true if the argument is a reference to the receiver object; false otherwise.

attributes: final

definition classes: AnyRef

defequals(that: Any): Boolean

The equality method defined in AnyRef.

The equality method defined in AnyRef.@return true if the receiver object is equivalent to the argument; false otherwise. */

Builds a new collection by applying a function to all elements of this immutable sequence
and concatenating the results.

Builds a new collection by applying a function to all elements of this immutable sequence
and concatenating the results.

B

the element type of the returned collection.

That

the class of the returned collection. Where possible, That is
the same class as the current collection class Repr, but this
depends on the element type B being admissible for that class,
which means that an implicit instance of type CanBuildFrom[Repr, B, That] is found.

f

the function to apply to each element.

bf

an implicit value of class CanBuildFrom which determines the
result class That from the current representation type Repr and the new element type B.

returns

a new collection of type That resulting from applying the given collection-valued function
f to each element of this immutable sequence and concatenating the results.

deffoldLeft[B](z: B)(op: (B, A) ⇒ B): B

Applies a binary operator to a start value and all elements of this immutable sequence, going left to right.

Applies a binary operator to a start value and all elements of this immutable sequence, going left to right.

B

the result type of the binary operator.

z

the start value.

op

the binary operator.

returns

the result of inserting op between consecutive elements of this immutable sequence,
going left to right with the start value z on the left:
op(...op(z, x1), x2, ..., xn)
where x,,1,,, ..., x,,n,, are the elements of this immutable sequence.

deffoldRight[B](z: B)(op: (A, B) ⇒ B): B

Applies a binary operator to all elements of this immutable sequence and a start value, going right to left.

Applies a binary operator to all elements of this immutable sequence and a start value, going right to left.

B

the result type of the binary operator.

z

the start value.

op

the binary operator.

returns

the result of inserting op between consecutive elements of this immutable sequence,
going right to left with the start value z on the right:
op(x1, op(x2, ... op(xn, z)...))
where x,,1,,, ..., x,,n,, are the elements of this immutable sequence.

Partitions this immutable sequence into a map of immutable sequences according to some discriminator function.

Partitions this immutable sequence into a map of immutable sequences according to some discriminator function.

Note: this method is not re-implemented by views. This means
when applied to a view it will always force the view and
return a new immutable sequence.

K

the type of keys returned by the discriminator function.

f

the discriminator function.

returns

A map from keys to immutable sequences such that the following invariant holds:
(xs partition f)(k) = xs filter (x => f(x) == k)
That is, every key k is bound to a immutable sequence of those elements x for which f(x) equals k.

defhasDefiniteSize: Boolean

Tests whether this immutable sequence is known to have a finite size.

Tests whether this immutable sequence is known to have a finite size.
All strict collections are known to have finite size. For a non-strict collection
such as Stream, the predicate returns true if all elements have been computed.
It returns false if the stream is not yet evaluated to the end.

Note: many collection methods will not work on collections of infinite sizes.

returns

true if this collection is known to have finite size, false otherwise.

[use case] Computes the multiset intersection between this immutable sequence and another sequence.

[use case]

Computes the multiset intersection between this immutable sequence and another sequence.

that

the sequence of elements to intersect with.

returns

a new immutable sequence which contains all elements of this immutable sequence
which also appear in that.
If an element value x appears
n times in that, then the first n occurrences of x will be retained
in the result, but any following occurrences will be omitted.

Computes the multiset intersection between this immutable sequence and another sequence.

Computes the multiset intersection between this immutable sequence and another sequence.

B

the element type of the returned immutable sequence.

that

the sequence of elements to intersect with.

returns

a new collection of type That which contains all elements of this immutable sequence
which also appear in that.
If an element value x appears
n times in that, then the first n occurrences of x will be retained
in the result, but any following occurrences will be omitted.

defisInstanceOf[T0]: Boolean

This method is used to test whether the dynamic type of the receiver object is T0.

This method is used to test whether the dynamic type of the receiver object is T0.

Note that the test result of the test is modulo Scala's erasure semantics. Therefore the expression1.isInstanceOf[String] will return false, while the expression List(1).isInstanceOf[List[String]] will
return true. In the latter example, because the type argument is erased as part of compilation it is not
possible to check whether the contents of the list are of the requested typed.

returns

true if the receiver object is an instance of erasure of type T0; false otherwise.

deflengthCompare(len: Int): Int

Compares the length of this immutable sequence to a test value.

Compares the length of this immutable sequence to a test value.

len

the test value that gets compared with the length.

returns

A value x where
x < 0 if this.length < len
x == 0 if this.length == len
x > 0 if this.length > len
The method as implemented here does not call length directly; its running time
is O(length min len) instead of O(length). The method should be overwritten
if computing length is cheap.

Builds a new collection by applying a function to all elements of this immutable sequence.

Builds a new collection by applying a function to all elements of this immutable sequence.

B

the element type of the returned collection.

That

the class of the returned collection. Where possible, That is
the same class as the current collection class Repr, but this
depends on the element type B being admissible for that class,
which means that an implicit instance of type CanBuildFrom[Repr, B, That] is found.

f

the function to apply to each element.

bf

an implicit value of class CanBuildFrom which determines the
result class That from the current representation type Repr and the new element type B.

returns

a new collection of type That resulting from applying the given function
f to each element of this immutable sequence and collecting the results.

defmkString: String

Displays all elements of this immutable sequence in a string.

Displays all elements of this immutable sequence in a string.

returns

a string representation of this immutable sequence. In the resulting string
the string representations (w.r.t. the method toString)
of all elements of this immutable sequence follow each other without any separator string.

defmkString(sep: String): String

Displays all elements of this immutable sequence in a string using a separator string.

Displays all elements of this immutable sequence in a string using a separator string.

sep

the separator string.

returns

a string representation of this immutable sequence. In the resulting string
the string representations (w.r.t. the method toString)
of all elements of this immutable sequence are separated by the string sep.

defmkString(start: String, sep: String, end: String): String

Displays all elements of this immutable sequence in a string using start, end, and separator strings.

Displays all elements of this immutable sequence in a string using start, end, and separator strings.

start

the starting string.

sep

the separator string.

end

the ending string.

returns

a string representation of this immutable sequence. The resulting string
begins with the string start and ends with the string
end. Inside, the string representations (w.r.t. the method toString)
of all elements of this immutable sequence are separated by the string sep.

Composes this partial function with a fallback partial function which gets applied where this partial function
is not defined.

Composes this partial function with a fallback partial function which gets applied where this partial function
is not defined.

A1

the argument type of the fallback function

B1

the result type of the fallback function

that

the fallback function

returns

a partial function which has as domain the union of the domains
of this partial function and that. The resulting partial function
takes x to this(x) where this is defined, and to that(x) where it is not.

[use case] Appends an element value to this immutable sequence until a given target length is reached.

[use case]

Appends an element value to this immutable sequence until a given target length is reached.

len

the target length

elem

the padding value

returns

a new immutable sequence consisting of
all elements of this immutable sequence followed by the minimal number of occurrences of elem so
that the resulting immutable sequence has a length of at least len.

Appends an element value to this immutable sequence until a given target length is reached.

Appends an element value to this immutable sequence until a given target length is reached.

B

the element type of the returned immutable sequence.

That

the class of the returned collection. Where possible, That is
the same class as the current collection class Repr, but this
depends on the element type B being admissible for that class,
which means that an implicit instance of type CanBuildFrom[Repr, B, That] is found.

len

the target length

elem

the padding value

bf

an implicit value of class CanBuildFrom which determines the
result class That from the current representation type Repr and the new element type B.

returns

a new collection of type That consisting of
all elements of this immutable sequence followed by the minimal number of occurrences of elem so
that the resulting collection has a length of at least len.

Partitions this immutable sequence in two immutable sequences according to a predicate.

Partitions this immutable sequence in two immutable sequences according to a predicate.

p

the predicate on which to partition.

returns

a pair of immutable sequences: the first immutable sequence consists of all elements that
satisfy the predicate p and the second immutable sequence consists of all elements
that don't. The relative order of the elements in the resulting immutable sequences
is the same as in the original immutable sequence.

Produces a new immutable sequence where a slice of elements in this immutable sequence is replaced by another sequence.

Produces a new immutable sequence where a slice of elements in this immutable sequence is replaced by another sequence.

B

the element type of the returned immutable sequence.

That

the class of the returned collection. Where possible, That is
the same class as the current collection class Repr, but this
depends on the element type B being admissible for that class,
which means that an implicit instance of type CanBuildFrom[Repr, B, That] is found.

from

the index of the first replaced element

patch

the replacement sequence

replaced

the number of elements to drop in the original immutable sequence

bf

an implicit value of class CanBuildFrom which determines the
result class That from the current representation type Repr and the new element type B.

returns

a new immutable sequence consisting of all elements of this immutable sequence
except that replaced elements starting from from are replaced
by patch.

defproduct: A

[use case] Multiplies up the elements of this collection.

[use case]

Multiplies up the elements of this collection.

returns

the product of all elements in this immutable sequence of numbers of type Int.
Instead of Int, any other type T with an implicit Numeric[T] implementation
can be used as element type of the immutable sequence and as result type of product.
Examples of such types are: Long, Float, Double, BigInt.

defreduceLeft[B >: A](op: (B, A) ⇒ B): B

Applies a binary operator to all elements of this immutable sequence, going left to right.

Applies a binary operator to all elements of this immutable sequence, going left to right.

B

the result type of the binary operator.

op

the binary operator.

returns

the result of inserting op between consecutive elements of this immutable sequence,
going left to right:
op(...(op(x1, x2), ... ) , xn)
where x,,1,,, ..., x,,n,, are the elements of this immutable sequence.

defreduceRight[B >: A](op: (A, B) ⇒ B): B

Applies a binary operator to all elements of this immutable sequence, going right to left.

Applies a binary operator to all elements of this immutable sequence, going right to left.

B

the result type of the binary operator.

op

the binary operator.

returns

the result of inserting op between consecutive elements of this immutable sequence,
going right to left:
op(x1, op(x2, ..., op(xn-1, xn)...))
where x,,1,,, ..., x,,n,, are the elements of this immutable sequence.

Builds a new collection by applying a function to all elements of this immutable sequence and
collecting the results in reversed order.

Builds a new collection by applying a function to all elements of this immutable sequence and
collecting the results in reversed order.

Note: xs.reverseMap(f) is the same as xs.reverse.map(f) but might be more efficient.

B

the element type of the returned collection.

That

the class of the returned collection. Where possible, That is
the same class as the current collection class Repr, but this
depends on the element type B being admissible for that class,
which means that an implicit instance of type CanBuildFrom[Repr, B, That] is found.

f

the function to apply to each element.

bf

an implicit value of class CanBuildFrom which determines the
result class That from the current representation type Repr and the new element type B.

returns

a new collection of type That resulting from applying the given function
f to each element of this immutable sequence and collecting the results in reversed order.

defsum: A

[use case] Sums up the elements of this collection.

[use case]

Sums up the elements of this collection.

returns

the sum of all elements in this immutable sequence of numbers of type Int.
Instead of Int, any other type T with an implicit Numeric[T] implementation
can be used as element type of the immutable sequence and as result type of sum.
Examples of such types are: Long, Float, Double, BigInt.

Converts this immutable sequence to an iterable collection. Note that
the choice of target Iterable is lazy in this default implementation
as this TraversableOnce may be lazy and unevaluated (i.e. it may
be an iterator which is only traversable once).

Converts this immutable sequence to a map. This method is unavailable unless
the elements are members of Tuple2, each ((K, V)) becoming a key-value
pair in the map. Duplicate keys will be overwritten by later keys:
if this is an unordered collection, which key is in the resulting map
is undefined.

Produces a new sequence which contains all elements of this immutable sequence and also all elements of
a given sequence.

Produces a new sequence which contains all elements of this immutable sequence and also all elements of
a given sequence. xs union ys is equivalent to xs ++ ys.

Another way to express this
is that xs union ys computes the order-presevring multi-set union of xs and ys.
union is hence a counter-part of diff and intersect which also work on multi-sets.

B

the element type of the returned immutable sequence.

That

the class of the returned collection. Where possible, That is
the same class as the current collection class Repr, but this
depends on the element type B being admissible for that class,
which means that an implicit instance of type CanBuildFrom[Repr, B, That] is found.

that

the sequence to add.

bf

an implicit value of class CanBuildFrom which determines the
result class That from the current representation type Repr and the new element type B.

returns

a new collection of type That which contains all elements of this immutable sequence
followed by all elements of that.

the class of the returned collection. Where possible, That is
the same class as the current collection class Repr, but this
depends on the element type B being admissible for that class,
which means that an implicit instance of type CanBuildFrom[Repr, B, That] is found.

index

the position of the replacement

elem

the replacing element

bf

an implicit value of class CanBuildFrom which determines the
result class That from the current representation type Repr and the new element type B.

returns

a new immutable sequence which is a copy of this immutable sequence with the element at position index replaced by elem.

Note: the difference between c filter p and c withFilter p is that
the former creates a new collection, whereas the latter only restricts
the domain of subsequent map, flatMap, foreach, and withFilter operations.

p

the predicate used to test elements.

returns

an object of class WithFilter, which supports
map, flatMap, foreach, and withFilter operations.
All these operations apply to those elements of this immutable sequence which
satisfy the predicate p.

[use case] Returns a immutable sequence formed from this immutable sequence and another iterable collection
by combining corresponding elements in pairs.

[use case]

Returns a immutable sequence formed from this immutable sequence and another iterable collection
by combining corresponding elements in pairs.
If one of the two collections is longer than the other, its remaining elements are ignored.

B

the type of the second half of the returned pairs

that

The iterable providing the second half of each result pair

returns

a new immutable sequence containing pairs consisting of
corresponding elements of this immutable sequence and that. The length
of the returned collection is the minimum of the lengths of this immutable sequence and that.

Returns a immutable sequence formed from this immutable sequence and another iterable collection
by combining corresponding elements in pairs.

Returns a immutable sequence formed from this immutable sequence and another iterable collection
by combining corresponding elements in pairs.
If one of the two collections is longer than the other, its remaining elements are ignored.

A1

the type of the first half of the returned pairs (this is always a supertype
of the collection's element type A).

B

the type of the second half of the returned pairs

That

the class of the returned collection. Where possible, That is
the same class as the current collection class Repr, but this
depends on the element type (A1, B) being admissible for that class,
which means that an implicit instance of type CanBuildFrom[Repr, (A1, B), That].
is found.

that

The iterable providing the second half of each result pair

bf

an implicit value of class CanBuildFrom which determines the
result class That from the current representation type Repr and the new element type (A1, B).

returns

a new collection of type That containing pairs consisting of
corresponding elements of this immutable sequence and that. The length
of the returned collection is the minimum of the lengths of this immutable sequence and that.

[use case] Returns a immutable sequence formed from this immutable sequence and another iterable collection
by combining corresponding elements in pairs.

[use case]

Returns a immutable sequence formed from this immutable sequence and another iterable collection
by combining corresponding elements in pairs.
If one of the two collections is shorter than the other,
placeholder elements are used to extend the shorter collection to the length of the longer.

B

the type of the second half of the returned pairs

that

The iterable providing the second half of each result pair

thisElem

the element to be used to fill up the result if this immutable sequence is shorter than that.

thatElem

the element to be used to fill up the result if that is shorter than this immutable sequence.

returns

a new immutable sequence containing pairs consisting of
corresponding elements of this immutable sequence and that. The length
of the returned collection is the maximum of the lengths of this immutable sequence and that.
If this immutable sequence is shorter than that, thisElem values are used to pad the result.
If that is shorter than this immutable sequence, thatElem values are used to pad the result.

Returns a immutable sequence formed from this immutable sequence and another iterable collection
by combining corresponding elements in pairs.

Returns a immutable sequence formed from this immutable sequence and another iterable collection
by combining corresponding elements in pairs.
If one of the two collections is shorter than the other,
placeholder elements are used to extend the shorter collection to the length of the longer.

that

the iterable providing the second half of each result pair

thisElem

the element to be used to fill up the result if this immutable sequence is shorter than that.

thatElem

the element to be used to fill up the result if that is shorter than this immutable sequence.

returns

a new collection of type That containing pairs consisting of
corresponding elements of this immutable sequence and that. The length
of the returned collection is the maximum of the lengths of this immutable sequence and that.
If this immutable sequence is shorter than that, thisElem values are used to pad the result.
If that is shorter than this immutable sequence, thatElem values are used to pad the result.

the type of the first half of the returned pairs (this is always a supertype
of the collection's element type A).

That

the class of the returned collection. Where possible, That is
the same class as the current collection class Repr, but this
depends on the element type (A1, Int) being admissible for that class,
which means that an implicit instance of type CanBuildFrom[Repr, (A1, Int), That].
is found.

returns

A new collection of type That containing pairs consisting of all elements of this
immutable sequence paired with their index. Indices start at 0.