scalax.io

LongTraversableLike

trait LongTraversableLike[+A, +Repr <: LongTraversableLike[A, Repr]] extends TraversableLike[A, Repr]

A traversable for use on very large datasets which cannot be indexed with Ints but instead require Longs for indexing.

This trait adds methods for accessing the extra portions of the dataset.

Self Type
LongTraversableLike[A, Repr]
Linear Supertypes
TraversableLike[A, Repr], GenTraversableLike[A, Repr], Parallelizable[A, ParIterable[A]], TraversableOnce[A], GenTraversableOnce[A], FilterMonadic[A, Repr], HasNewBuilder[A, Repr], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. LongTraversableLike
  2. TraversableLike
  3. GenTraversableLike
  4. Parallelizable
  5. TraversableOnce
  6. GenTraversableOnce
  7. FilterMonadic
  8. HasNewBuilder
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type Self = Repr

    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  2. class WithFilter extends FilterMonadic[A, Repr]

    Definition Classes
    TraversableLike

Abstract Value Members

  1. abstract def context: ResourceContext

  2. abstract def force: Repr

  3. abstract def iterator: CloseableIterator[A]

    Attributes
    protected[scalax.io]
  4. abstract def newBuilder: Builder[A, Repr]

    Attributes
    protected[this]
    Definition Classes
    TraversableLike → HasNewBuilder
  5. abstract def seq: TraversableOnce[A]

    Definition Classes
    Parallelizable

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. def ++[B >: A, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Repr, B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  4. def ++:[B >: A, That](that: Traversable[B])(implicit bf: CanBuildFrom[Repr, B, That]): That

    Definition Classes
    LongTraversableLike → TraversableLike
  5. def ++:[B >: A, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Repr, B, That]): That

    Definition Classes
    TraversableLike
  6. def /:[B](z: B)(op: (B, A) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  7. def :\[B](z: B)(op: (A, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  8. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  9. def addString(b: StringBuilder): StringBuilder

    Definition Classes
    TraversableOnce
  10. def addString(b: StringBuilder, sep: String): StringBuilder

    Definition Classes
    TraversableOnce
  11. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Definition Classes
    TraversableOnce
  12. def aggregate[B](z: ⇒ B)(seqop: (B, A) ⇒ B, combop: (B, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  13. def apply(idx: Long): A

    Selects an element by its index in the $coll.

    Selects an element by its index in the $coll.

    idx

    The index to select.

    returns

    the element of this $coll at index idx, where 0 indicates the first element.

    Exceptions thrown
    `IndexOutOfBoundsException`

    if idx does not satisfy 0 <= idx < length.

  14. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  15. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def collect[B, That](pf: PartialFunction[A, B])(implicit bf: CanBuildFrom[Repr, B, That]): That

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  17. def collectFirst[B](pf: PartialFunction[A, B]): Option[B]

    Definition Classes
    TraversableOnce
  18. def containsSlice[B](that: Seq[B], start: Long): Boolean

    Tests whether this $coll contains a given sequence as a slice.

    Tests whether this $coll contains a given sequence as a slice. $mayNotTerminateInf

    that

    the sequence to test

    returns

    true if this $coll contains a slice with the same elements as that, otherwise false.

  19. def containsSlice[B](that: Seq[B]): Boolean

    Tests whether this $coll contains a given sequence as a slice.

    Tests whether this $coll contains a given sequence as a slice. $mayNotTerminateInf

    that

    the sequence to test

    returns

    true if this $coll contains a slice with the same elements as that, otherwise false.

  20. def copyToArray[B >: A](xs: Array[B], start: Int, len: Int): Unit

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  21. def copyToArray[B >: A](xs: Array[B]): Unit

    Definition Classes
    TraversableOnce → GenTraversableOnce
  22. def copyToArray[B >: A](xs: Array[B], start: Int): Unit

    Definition Classes
    TraversableOnce → GenTraversableOnce
  23. def copyToBuffer[B >: A](dest: Buffer[B]): Unit

    Definition Classes
    TraversableOnce
  24. def corresponds[B](that: LongTraversable[B])(p: (A, B) ⇒ Boolean): Boolean

    Tests whether every element of this $coll relates to the corresponding element of another sequence by satisfying a test predicate.

    Tests whether every element of this $coll relates to the corresponding element of another sequence by satisfying a test predicate.

    B

    the type of the elements of that

    that

    the other sequence

    p

    the test predicate, which relates elements from both sequences

    returns

    true if both sequences have the same length and p(x, y) is true for all corresponding elements x of this $coll and y of that, otherwise false.

  25. def corresponds[B](that: Seq[B])(p: (A, B) ⇒ Boolean): Boolean

    Tests whether every element of this $coll relates to the corresponding element of another sequence by satisfying a test predicate.

    Tests whether every element of this $coll relates to the corresponding element of another sequence by satisfying a test predicate.

    B

    the type of the elements of that

    that

    the other sequence

    p

    the test predicate, which relates elements from both sequences

    returns

    true if both sequences have the same length and p(x, y) is true for all corresponding elements x of this $coll and y of that, otherwise false.

  26. def count(p: (A) ⇒ Boolean): Int

    Definition Classes
    TraversableOnce → GenTraversableOnce
  27. def drop(n: Int): Repr

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  28. def dropWhile(p: (A) ⇒ Boolean): Repr

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  29. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  30. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  31. def exists(p: (A) ⇒ Boolean): Boolean

    Definition Classes
    LongTraversableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  32. def filter(p: (A) ⇒ Boolean): Repr

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  33. def filterNot(p: (A) ⇒ Boolean): Repr

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  34. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  35. def find(p: (A) ⇒ Boolean): Option[A]

    Definition Classes
    LongTraversableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  36. def flatMap[B, That](f: (A) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Repr, B, That]): That

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike → FilterMonadic
  37. def fold[A1 >: A](z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  38. def foldLeft[B](z: B)(op: (B, A) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  39. def foldRight[B](z: B)(op: (A, B) ⇒ B): B

    Definition Classes
    LongTraversableLike → TraversableOnce → GenTraversableOnce
  40. def forall(p: (A) ⇒ Boolean): Boolean

    Definition Classes
    LongTraversableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  41. def foreach[U](f: (A) ⇒ U): Unit

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  42. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  43. def groupBy[K](f: (A) ⇒ K): Map[K, Repr]

    Definition Classes
    TraversableLike → GenTraversableLike
  44. def grouped[That](size: Int)(implicit bf: CanBuildFrom[Repr, Seq[A], That]): That

    Partitions the data into fixed size blocks (same as sliding(size,size).

    Partitions the data into fixed size blocks (same as sliding(size,size).

    size

    the number of elements per group

    returns

    An LongTraversable producing Seqs of size size, except the last and the only element will be truncated if there are fewer elements than size.

  45. def hasDefiniteSize: Boolean

    Definition Classes
    LongTraversableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  46. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  47. def head: A

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  48. def headOption: Option[A]

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  49. def indexOf(elem: A, from: Int): Int

    [use case]

    [use case]
    elem

    the element value to search for.

    from

    the start index

    returns

    the index >= from of the first element of this $coll that is equal (wrt ==) to elem, or -1, if none exists.

    Full Signature

    def indexOf[B >: A](elem: B, from: Long): Long

  50. def indexOf(elem: A): Int

    [use case]

    [use case]
    elem

    the element value to search for.

    returns

    the index of the first element of this $coll that is equal (wrt ==) to elem, or -1, if none exists.

    Full Signature

    def indexOf[B >: A](elem: B): Long

  51. def indexOfSlice[B >: A](that: Seq[B], from: Long): Long

    Finds first index after or at a start index where this $coll contains a given sequence as a slice.

    Finds first index after or at a start index where this $coll contains a given sequence as a slice. $mayNotTerminateInf

    that

    the sequence to test

    from

    the start index

    returns

    the first index >= from such that the elements of this $coll starting at this index match the elements of sequence that, or -1 of no such subsequence exists.

  52. def indexOfSlice[B >: A](that: Seq[B]): Long

    Finds first index where this $coll contains a given sequence as a slice.

    Finds first index where this $coll contains a given sequence as a slice. $mayNotTerminateInf

    that

    the sequence to test

    returns

    the first index such that the elements of this $coll starting at this index match the elements of sequence that, or -1 of no such subsequence exists.

  53. def indexWhere(p: (A) ⇒ Boolean, from: Long): Long

    Finds index of the first element satisfying some predicate after or at some start index.

    Finds index of the first element satisfying some predicate after or at some start index.

    $mayNotTerminateInf

    p

    the predicate used to test elements.

    from

    the start index

    returns

    the index >= from of the first element of this $coll that satisfies the predicate p, or -1, if none exists.

  54. def indexWhere(p: (A) ⇒ Boolean): Long

  55. def init: Repr

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  56. def inits: Iterator[Repr]

    Definition Classes
    TraversableLike
  57. def isDefinedAt(idx: Long): Boolean

  58. def isEmpty: Boolean

    Definition Classes
    LongTraversableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  59. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  60. final def isTraversableAgain: Boolean

    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  61. def last: A

    Definition Classes
    TraversableLike → GenTraversableLike
  62. def lastIndexOf(elem: A, end: Int): Int

    [use case]

    [use case]
    elem

    the element value to search for.

    end

    the end index.

    returns

    the index <= end of the last element of this $coll that is equal (wrt ==) to elem, or -1, if none exists.

    Full Signature

    def lastIndexOf[B >: A](elem: B, end: Long): Long

  63. def lastIndexOf(elem: A): Int

    [use case]

    [use case]
    elem

    the element value to search for.

    returns

    the index of the last element of this $coll that is equal (wrt ==) to elem, or -1, if none exists.

    Full Signature

    def lastIndexOf[B >: A](elem: B): Long

  64. def lastIndexWhere(p: (A) ⇒ Boolean, end: Long): Long

    Finds index of last element satisfying some predicate before or at given end index.

    Finds index of last element satisfying some predicate before or at given end index.

    Always takes linear time and traverses entire traversal

    p

    the predicate used to test elements.

    returns

    the index <= end of the last element of this $coll that satisfies the predicate p, or -1, if none exists.

  65. def lastIndexWhere(p: (A) ⇒ Boolean): Long

    Finds index of last element satisfying some predicate.

    Finds index of last element satisfying some predicate.

    $willNotTerminateInf

    p

    the predicate used to test elements.

    returns

    the index of the last element of this $coll that satisfies the predicate p, or -1, if none exists.

  66. def lastOption: Option[A]

    Definition Classes
    TraversableLike → GenTraversableLike
  67. def lcount(p: (A) ⇒ Boolean): Long

  68. def ldrop(n: Long): Repr

    The long equivalent of Traversable.

    The long equivalent of Traversable.drop

  69. def limitFold[U](init: U)(op: (U, A) ⇒ FoldResult[U]): U

    A foldLeft operation that can be terminated without processing the entire collection.

    A foldLeft operation that can be terminated without processing the entire collection.

    Unlike a normal fold, the function passed to limitFold returns a scalax.io.FoldResult which both provides the value that is to be passed to the next stage of the fold as well as represents if the fold should continue or terminate.

    init

    the value to seed the operation with. IE the value that is passed as the accumulator for the first value of the fold operation

    op

    the operation that combines the current and previous versions. The input is the (acc,next) where acc is the result from the previous call and next is the next value in the collection to be processed. The return value of the op is Either scalax.io.Continue or scalax.io.End indicating if the process should continue to next element or terminate, returning the value contained in the result object

    returns

    the last value contained in the scalax.io.FoldResult which was returned by op

  70. def lsize: Long

    The long equivalent of Traversable.

    The long equivalent of Traversable.size

    NOT recommended for use since it might trigger a full traversal of the traversable

  71. def lslice(from: Long, until: Long): Repr

  72. def lsplitAt(n: Long): (Repr, Repr)

    The long equivalent of Traversable.

    The long equivalent of Traversable.splitAt

  73. def ltake(n: Long): Repr

    The long equivalent of Traversable.

    The long equivalent of Traversable.take

  74. def map[B, That](f: (A) ⇒ B)(implicit bf: CanBuildFrom[Repr, B, That]): That

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike → FilterMonadic
  75. def max[B >: A](implicit cmp: Ordering[B]): A

    Definition Classes
    TraversableOnce → GenTraversableOnce
  76. def maxBy[B](f: (A) ⇒ B)(implicit cmp: Ordering[B]): A

    Definition Classes
    TraversableOnce → GenTraversableOnce
  77. def min[B >: A](implicit cmp: Ordering[B]): A

    Definition Classes
    TraversableOnce → GenTraversableOnce
  78. def minBy[B](f: (A) ⇒ B)(implicit cmp: Ordering[B]): A

    Definition Classes
    TraversableOnce → GenTraversableOnce
  79. def mkString: String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  80. def mkString(sep: String): String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  81. def mkString(start: String, sep: String, end: String): String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  82. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  83. def nonEmpty: Boolean

    Definition Classes
    TraversableOnce → GenTraversableOnce
  84. final def notify(): Unit

    Definition Classes
    AnyRef
  85. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  86. def par: ParIterable[A]

    Definition Classes
    Parallelizable
  87. def parCombiner: Combiner[A, ParIterable[A]]

    Attributes
    protected[this]
    Definition Classes
    TraversableLike → Parallelizable
  88. def partition(p: (A) ⇒ Boolean): (Repr, Repr)

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  89. def prefixLength(p: (A) ⇒ Boolean): Long

    Returns the length of the longest prefix whose elements all satisfy some predicate.

    Returns the length of the longest prefix whose elements all satisfy some predicate.

    p

    the predicate used to test elements.

    returns

    the length of the longest prefix of this $coll such that every element of the segment satisfies the predicate p.

  90. def processor: CloseableIteratorProcessor[A]

    Create a processor that provides an API for declaring a processing pipeline of this LongTraversable in a very flexible way.

    Create a processor that provides an API for declaring a processing pipeline of this LongTraversable in a very flexible way.

    returns

    a processor for processing a LongTraversable

  91. def product[B >: A](implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  92. def reduce[A1 >: A](op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  93. def reduceLeft[B >: A](op: (B, A) ⇒ B): B

    Definition Classes
    TraversableOnce
  94. def reduceLeftOption[B >: A](op: (B, A) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  95. def reduceOption[A1 >: A](op: (A1, A1) ⇒ A1): Option[A1]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  96. def reduceRight[B >: A](op: (A, B) ⇒ B): B

    Definition Classes
    LongTraversableLike → TraversableOnce → GenTraversableOnce
  97. def reduceRightOption[B >: A](op: (A, B) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  98. def repr: Repr

    Definition Classes
    TraversableLike → GenTraversableLike
  99. def reversed: List[A]

    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  100. def sameElements[B >: A](that: LongTraversable[B]): Boolean

  101. def sameElements[B >: A](that: Iterable[B]): Boolean

  102. def scan[B >: A, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Repr, B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  103. def scanLeft[B, That](z: B)(op: (B, A) ⇒ B)(implicit bf: CanBuildFrom[Repr, B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  104. def scanRight[B, That](z: B)(op: (A, B) ⇒ B)(implicit bf: CanBuildFrom[Repr, B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The behavior of scanRight has changed. The previous behavior can be reproduced with scanRight.reverse.

  105. def segmentLength(p: (A) ⇒ Boolean, from: Long = 0): Long

    Computes length of longest segment whose elements all satisfy some predicate.

    Computes length of longest segment whose elements all satisfy some predicate.

    p

    the predicate used to test elements.

    from

    the index where the search starts.

    returns

    the length of the longest segment of this $coll starting from index from such that every element of the segment satisfies the predicate p.

  106. def size: Int

    Definition Classes
    LongTraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce
  107. def slice(from: Int, until: Int): Repr

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  108. def sliding[That](size: Int, step: Int = 1)(implicit bf: CanBuildFrom[Repr, Seq[A], That]): That

    Groups elements in fixed size blocks by passing a "sliding window" over them.

    Groups elements in fixed size blocks by passing a "sliding window" over them.

    This is based on Iterator#sliding but does not return an iterator to ensure that a resource is not left open.

    size

    the number of elements per group

    step

    the distance between the first elements of successive groups (defaults to 1)

    returns

    An LongTraversable producing Seqs of size size, except the last and the only element will be truncated if there are fewer elements than size.

  109. def span(p: (A) ⇒ Boolean): (Repr, Repr)

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  110. def splitAt(n: Int): (Repr, Repr)

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  111. def startsWith[B](that: Seq[B]): Boolean

    Tests whether this $coll starts with the given sequence.

    Tests whether this $coll starts with the given sequence.

    that

    the sequence to test

    returns

    true if this collection has that as a prefix, false otherwise.

  112. def startsWith[B](that: Seq[B], offset: Long): Boolean

    Tests whether this $coll contains the given sequence at a given index.

    Tests whether this $coll contains the given sequence at a given index.

    If the both the receiver object, this and the argument, that are infinite sequences this method may not terminate.

    that

    the sequence to test

    offset

    the index where the sequence is searched.

    returns

    true if the sequence that is contained in this $coll at index offset, otherwise false.

  113. def startsWith[B](that: LongTraversable[B]): Boolean

    Tests whether this $coll starts with the given sequence.

    Tests whether this $coll starts with the given sequence.

    that

    the sequence to test

    returns

    true if this collection has that as a prefix, false otherwise.

  114. def startsWith[B](that: LongTraversable[B], offset: Long): Boolean

    Tests whether this $coll contains the given sequence at a given index.

    Tests whether this $coll contains the given sequence at a given index.

    If the both the receiver object, this and the argument, that are infinite sequences this method may not terminate.

    that

    the sequence to test

    offset

    the index where the sequence is searched.

    returns

    true if the sequence that is contained in this $coll at index offset, otherwise false.

  115. def stringPrefix: String

    Definition Classes
    TraversableLike → GenTraversableLike
  116. def sum[B >: A](implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  117. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  118. def tail: Repr

    Definition Classes
    TraversableLike → GenTraversableLike
  119. def tails: Iterator[Repr]

    Definition Classes
    TraversableLike
  120. def take(n: Int): Repr

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  121. def takeWhile(p: (A) ⇒ Boolean): Repr

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  122. def thisCollection: LongTraversable[A]

    Attributes
    protected[this]
    Definition Classes
    LongTraversableLike → TraversableLike
  123. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, A, Col[A]]): Col[A]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  124. def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]

    Definition Classes
    LongTraversableLike → TraversableOnce → GenTraversableOnce
  125. def toBuffer[B >: A]: Buffer[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  126. def toCollection(repr: Repr): LongTraversable[A]

    Attributes
    protected[this]
    Definition Classes
    LongTraversableLike → TraversableLike
  127. def toIndexedSeq: IndexedSeq[A]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  128. def toIterable: Iterable[A]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  129. def toIterator: Iterator[A]

    Definition Classes
    TraversableLike → GenTraversableOnce
  130. def toList: List[A]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  131. def toMap[T, U](implicit ev: <:<[A, (T, U)]): Map[T, U]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  132. def toSeq: Seq[A]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  133. def toSet[B >: A]: Set[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  134. def toStream: Stream[A]

    Definition Classes
    TraversableLike → GenTraversableOnce
  135. def toString(): String

    Definition Classes
    TraversableLike → Any
  136. def toTraversable: Traversable[A]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  137. def toVector: Vector[A]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  138. def view(from: Int, until: Int): TraversableView[A, Repr]

    Definition Classes
    TraversableLike
  139. def view: TraversableView[A, Repr]

    Definition Classes
    TraversableLike
  140. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  141. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  142. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  143. def withFilter(p: (A) ⇒ Boolean): FilterMonadic[A, Repr]

    Definition Classes
    TraversableLike → FilterMonadic
  144. def withIterator[U](f: (CloseableIterator[A]) ⇒ U): U

    Use the underlying iterator for this traversable.

    Use the underlying iterator for this traversable.

    Exceptions thrown
    AssertionError

    if the iterator is returned

    Note

    withIterator catches all exceptions and calls the error handler to handle the exceptions So exceptions must not be thrown in f as control flow exceptions.

    ,

    If the iterator is returned from this block an exception will be thrown because the iterator is invalid outside of this block and the behaviour is undefined

  145. def zip[B, A1 >: A, That](that: LongTraversable[B])(implicit bf: LongTraversableBuilder[(A1, B), That]): That

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

    Returns a $coll formed from this $coll 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 collection of type That containing pairs consisting of corresponding elements of this $coll and that. The length of the returned collection is the minimum of the lengths of this $coll and that.

  146. def zip[B, A1 >: A, That](that: Iterable[B])(implicit bf: LongTraversableBuilder[(A1, B), That]): That

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

    Returns a $coll formed from this $coll 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 collection of type That containing pairs consisting of corresponding elements of this $coll and that. The length of the returned collection is the minimum of the lengths of this $coll and that.

  147. def zipAll[B, A1 >: A, That](that: LongTraversable[B], thisElem: A1, thatElem: B)(implicit bf: LongTraversableBuilder[(A1, B), That]): That

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

    Returns a $coll formed from this $coll 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.

    $orderDependent

    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 $coll is shorter than that.

    thatElem

    the element to be used to fill up the result if that is shorter than this $coll.

    returns

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

  148. def zipAll[B, A1 >: A, That](that: Iterable[B], thisElem: A1, thatElem: B)(implicit bf: LongTraversableBuilder[(A1, B), That]): That

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

    Returns a $coll formed from this $coll 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.

    $orderDependent

    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 $coll is shorter than that.

    thatElem

    the element to be used to fill up the result if that is shorter than this $coll.

    returns

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

  149. def zipWithIndex: <error>

    [use case]

    [use case]
    returns

    A new $coll containing pairs consisting of all elements of this $coll paired with their index. Indices start at 0.

    Full Signature

    def zipWithIndex[A1 >: A, That](implicit bf: LongTraversableBuilder[(A1, Int), That]): That

    Example:
    1. List("a", "b", "c").zipWithIndex = List(("a", 0), ("b", 1), ("c", 2))

Inherited from TraversableLike[A, Repr]

Inherited from GenTraversableLike[A, Repr]

Inherited from Parallelizable[A, ParIterable[A]]

Inherited from TraversableOnce[A]

Inherited from GenTraversableOnce[A]

Inherited from FilterMonadic[A, Repr]

Inherited from HasNewBuilder[A, Repr]

Inherited from AnyRef

Inherited from Any

Ungrouped