scalax.io

LineTraversable

class LineTraversable extends LongTraversable[String]

Creates a Traversable[String] from a Traversable[Char] where each String is a line as indicated by the Terminator.

See also

ReadChars

,

Input

Linear Supertypes
LongTraversable[String], LongTraversableLike[String, LongTraversable[String]], Traversable[String], GenTraversable[String], GenericTraversableTemplate[String, LongTraversable], TraversableLike[String, LongTraversable[String]], GenTraversableLike[String, LongTraversable[String]], Parallelizable[String, ParIterable[String]], TraversableOnce[String], GenTraversableOnce[String], FilterMonadic[String, LongTraversable[String]], HasNewBuilder[String, LongTraversable[String]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. LineTraversable
  2. LongTraversable
  3. LongTraversableLike
  4. Traversable
  5. GenTraversable
  6. GenericTraversableTemplate
  7. TraversableLike
  8. GenTraversableLike
  9. Parallelizable
  10. TraversableOnce
  11. GenTraversableOnce
  12. FilterMonadic
  13. HasNewBuilder
  14. AnyRef
  15. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LineTraversable (source: ⇒ CloseableIterator[Char], terminator: Terminator, includeTerminator: Boolean, resourceContext: ResourceContext)

Type Members

  1. type Self = LongTraversable[String]

    Attributes
    protected
    Definition Classes
    TraversableLike

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def ++ [B >: String, That] (that: TraversableOnce[B])(implicit bf: CanBuildFrom[LongTraversable[String], B, That]): That

    Definition Classes
    TraversableLike
    Annotations
    @bridge()
  5. def ++ [B >: String, That] (that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[LongTraversable[String], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  6. def ++: [B >: String, That] (that: Traversable[B])(implicit bf: CanBuildFrom[LongTraversable[String], B, That]): That

    Definition Classes
    LongTraversableLike → TraversableLike
  7. def ++: [B >: String, That] (that: TraversableOnce[B])(implicit bf: CanBuildFrom[LongTraversable[String], B, That]): That

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

    Definition Classes
    TraversableOnce → GenTraversableOnce
  9. def /:\ [A1 >: String] (z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    GenTraversableOnce
  10. def :\ [B] (z: B)(op: (String, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  11. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  12. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  13. def addString (b: StringBuilder): StringBuilder

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

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

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

    Definition Classes
    TraversableOnce → GenTraversableOnce
  17. def apply (idx: Long): String

    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.

    Definition Classes
    LongTraversableLike
  18. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  19. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  20. def collect [B, That] (pf: PartialFunction[String, B])(implicit bf: CanBuildFrom[LongTraversable[String], B, That]): That

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

    Definition Classes
    TraversableOnce
  22. def companion : GenericCompanion[LongTraversable]

    Definition Classes
    LongTraversable → Traversable → GenTraversable → GenericTraversableTemplate
  23. 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.

    Definition Classes
    LongTraversableLike
  24. 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.

    Definition Classes
    LongTraversableLike
  25. def context : ResourceContext

    Definition Classes
    LineTraversableLongTraversableLike
  26. def copyToArray [B >: String] (xs: Array[B], start: Int, len: Int): Unit

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

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

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

    Definition Classes
    TraversableOnce
  30. def corresponds [B] (that: LongTraversable[B])(p: (String, 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.

    Definition Classes
    LongTraversableLike
  31. def corresponds [B] (that: Seq[B])(p: (String, 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.

    Definition Classes
    LongTraversableLike
  32. def count (p: (String) ⇒ Boolean): Int

    Definition Classes
    TraversableOnce → GenTraversableOnce
  33. def drop (n: Int): LongTraversable[String]

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  34. def dropWhile (p: (String) ⇒ Boolean): LongTraversable[String]

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

    Attributes
    final
    Definition Classes
    AnyRef
  36. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  37. def exists (p: (String) ⇒ Boolean): Boolean

    Definition Classes
    LongTraversableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  38. def filter (p: (String) ⇒ Boolean): LongTraversable[String]

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  39. def filterNot (p: (String) ⇒ Boolean): LongTraversable[String]

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  41. def find (p: (String) ⇒ Boolean): Option[String]

    Definition Classes
    LongTraversableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  42. def flatMap [B, That] (f: (String) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[LongTraversable[String], B, That]): That

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike → FilterMonadic
  43. def flatten [B] (implicit asTraversable: (String) ⇒ TraversableOnce[B]): Traversable[B]

    Definition Classes
    Traversable → GenericTraversableTemplate
    Annotations
    @bridge()
  44. def fold [A1 >: String] (z: A1)(op: (A1, A1) ⇒ A1): A1

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

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

    Definition Classes
    LongTraversableLike → TraversableOnce → GenTraversableOnce
  47. def forall (p: (String) ⇒ Boolean): Boolean

    Definition Classes
    LongTraversableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  48. def force : LongTraversable[String]

    Definition Classes
    LongTraversableLongTraversableLike
  49. def foreach [U] (f: (String) ⇒ U): Unit

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  50. def genericBuilder [B] : Builder[B, LongTraversable[B]]

    Definition Classes
    GenericTraversableTemplate
  51. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  52. def groupBy [K] (f: (String) ⇒ K): Map[K, LongTraversable[String]]

    Definition Classes
    TraversableLike → GenTraversableLike
  53. def grouped [That] (size: Int)(implicit bf: CanBuildFrom[LongTraversable[String], Seq[String], 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.

    Definition Classes
    LongTraversableLike
  54. def hasDefiniteSize : Boolean

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

    Definition Classes
    AnyRef → Any
  56. def head : String

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  57. def headOption : Option[String]

    Definition Classes
    LongTraversableLike → TraversableLike
  58. def indexOf (elem: String, from: Int): Int

    [use case] Finds index of first occurrence of some value in this $coll after or at some start index.

    [use case]

    Finds index of first occurrence of some value in this $coll after or at some start index.

    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.

    Attributes
    abstract
    Definition Classes
    LongTraversableLike
  59. def indexOf [B >: String] (elem: B, from: Long): Long

    Finds index of first occurrence of some value in this $coll after or at some start index.

    Finds index of first occurrence of some value in this $coll after or at some start index.

    $mayNotTerminateInf

    B

    the type of the element elem.

    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.

    Definition Classes
    LongTraversableLike
  60. def indexOf (elem: String): Int

    [use case] Finds index of first occurrence of some value in this $coll.

    [use case]

    Finds index of first occurrence of some value in this $coll.

    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.

    Attributes
    abstract
    Definition Classes
    LongTraversableLike
  61. def indexOf [B >: String] (elem: B): Long

    Finds index of first occurrence of some value in this $coll.

    Finds index of first occurrence of some value in this $coll.

    $mayNotTerminateInf

    B

    the type of the element elem.

    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.

    Definition Classes
    LongTraversableLike
  62. def indexOfSlice [B >: String] (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.

    Definition Classes
    LongTraversableLike
  63. def indexOfSlice [B >: String] (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.

    Definition Classes
    LongTraversableLike
  64. def indexWhere (p: (String) ⇒ 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.

    Definition Classes
    LongTraversableLike
  65. def indexWhere (p: (String) ⇒ Boolean): Long

    Definition Classes
    LongTraversableLike
  66. def init : LongTraversable[String]

    Definition Classes
    LongTraversableLike → TraversableLike
  67. def inits : Iterator[LongTraversable[String]]

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

    Definition Classes
    LongTraversableLike
  69. def isEmpty : Boolean

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

    Attributes
    final
    Definition Classes
    Any
  71. def isTraversableAgain : Boolean

    Attributes
    final
    Definition Classes
    GenTraversableLike → GenTraversableOnce
  72. def iterator : CloseableIterator[String]

    Attributes
    protected[io]
    Definition Classes
    LineTraversableLongTraversableLike
  73. def last : String

    Definition Classes
    TraversableLike
  74. def lastIndexOf (elem: String, end: Int): Int

    [use case] Finds index of last occurrence of some value in this $coll before or at a given end index.

    [use case]

    Finds index of last occurrence of some value in this $coll before or at a given end index.

    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.

    Attributes
    abstract
    Definition Classes
    LongTraversableLike
  75. def lastIndexOf [B >: String] (elem: B, end: Long): Long

    Finds index of last occurrence of some value in this $coll before or at a given end index.

    Finds index of last occurrence of some value in this $coll before or at a given end index.

    B

    the type of the element elem.

    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.

    Definition Classes
    LongTraversableLike
  76. def lastIndexOf (elem: String): Int

    [use case] Finds index of last occurrence of some value in this $coll.

    [use case]

    Finds index of last occurrence of some value in this $coll.

    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.

    Attributes
    abstract
    Definition Classes
    LongTraversableLike
  77. def lastIndexOf [B >: String] (elem: B): Long

    Finds index of last occurrence of some value in this $coll.

    Finds index of last occurrence of some value in this $coll.

    $willNotTerminateInf

    B

    the type of the element elem.

    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.

    Definition Classes
    LongTraversableLike
  78. def lastIndexWhere (p: (String) ⇒ 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.

    Definition Classes
    LongTraversableLike
  79. def lastIndexWhere (p: (String) ⇒ 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.

    Definition Classes
    LongTraversableLike
  80. def lastOption : Option[String]

    Definition Classes
    TraversableLike
  81. def lcount (p: (String) ⇒ Boolean): Long

    Definition Classes
    LongTraversableLike
  82. def ldrop (n: Long): LongTraversable[String]

    The long equivalent of Traversable.

    The long equivalent of Traversable.drop

    Definition Classes
    LongTraversableLike
  83. def limitFold [U] (init: U)(op: (U, String) ⇒ 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 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 Continue or 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 FoldResult which was returned by op

    Definition Classes
    LongTraversableLike
  84. 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

    Definition Classes
    LongTraversableLike
  85. def lslice (from: Long, until: Long): LongTraversable[String]

    Definition Classes
    LongTraversableLike
  86. def lsplitAt (n: Long): (LongTraversable[String], LongTraversable[String])

    The long equivalent of Traversable.

    The long equivalent of Traversable.splitAt

    Definition Classes
    LongTraversableLike
  87. def ltake (n: Long): LongTraversable[String]

    The long equivalent of Traversable.

    The long equivalent of Traversable.take

    Definition Classes
    LongTraversableLike
  88. def map [B, That] (f: (String) ⇒ B)(implicit bf: CanBuildFrom[LongTraversable[String], B, That]): That

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

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

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

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

    Definition Classes
    TraversableOnce → GenTraversableOnce
  93. def mkString : String

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  97. def newBuilder : LongTraversableBuilder[String, LongTraversable[String]]

    Attributes
    protected[this]
    Definition Classes
    LongTraversable → GenericTraversableTemplate → TraversableLike → HasNewBuilder
  98. def nonEmpty : Boolean

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

    Attributes
    final
    Definition Classes
    AnyRef
  100. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  101. def par : ParIterable[String]

    Definition Classes
    Parallelizable
  102. def parCombiner : Combiner[String, ParIterable[String]]

    Attributes
    protected[this]
    Definition Classes
    TraversableLike → Parallelizable
  103. def partition (p: (String) ⇒ Boolean): (LongTraversable[String], LongTraversable[String])

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  104. def prefixLength (p: (String) ⇒ 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.

    Definition Classes
    LongTraversableLike
  105. def processor : CloseableIteratorProcessor[String]

    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

    Definition Classes
    LongTraversableLike
  106. def product [B >: String] (implicit num: Numeric[B]): B

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

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

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

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

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

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

    Definition Classes
    TraversableOnce → GenTraversableOnce
  113. def repr : LongTraversable[String]

    Definition Classes
    TraversableLike → GenTraversableLike
  114. def reversed : List[String]

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

    Definition Classes
    LongTraversableLike
  116. def sameElements [B >: String] (that: Iterable[B]): Boolean

    Definition Classes
    LongTraversableLike
  117. def scan [B >: String, That] (z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[LongTraversable[String], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  118. def scanLeft [B, That] (z: B)(op: (B, String) ⇒ B)(implicit bf: CanBuildFrom[LongTraversable[String], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  119. def scanRight [B, That] (z: B)(op: (String, B) ⇒ B)(implicit bf: CanBuildFrom[LongTraversable[String], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
    Annotations
    @migration
    Migration

  120. def segmentLength (p: (String) ⇒ 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.

    Definition Classes
    LongTraversableLike
  121. def seq : Traversable[String]

    Definition Classes
    Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  122. def size : Int

    Definition Classes
    LongTraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce
  123. def slice (from: Int, until: Int): LongTraversable[String]

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  124. def sliding [That] (size: Int, step: Int = 1)(implicit bf: CanBuildFrom[LongTraversable[String], Seq[String], 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.

    Definition Classes
    LongTraversableLike
  125. def span (p: (String) ⇒ Boolean): (LongTraversable[String], LongTraversable[String])

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  126. def splitAt (n: Int): (LongTraversable[String], LongTraversable[String])

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  127. 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.

    Definition Classes
    LongTraversableLike
  128. 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.

    Definition Classes
    LongTraversableLike
  129. 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.

    Definition Classes
    LongTraversableLike
  130. 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.

    Definition Classes
    LongTraversableLike
  131. def stringPrefix : String

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  134. def tail : LongTraversable[String]

    Definition Classes
    TraversableLike → GenTraversableLike
  135. def tails : Iterator[LongTraversable[String]]

    Definition Classes
    TraversableLike
  136. def take (n: Int): LongTraversable[String]

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  137. def takeWhile (p: (String) ⇒ Boolean): LongTraversable[String]

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  138. def thisCollection : LongTraversable[String]

    Attributes
    protected[this]
    Definition Classes
    LongTraversableLike → TraversableLike
  139. def toArray [B >: String] (implicit arg0: ClassManifest[B]): Array[B]

    Definition Classes
    LongTraversableLike → TraversableOnce → GenTraversableOnce
  140. def toBuffer [B >: String] : Buffer[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  141. def toCollection (repr: LongTraversable[String]): LongTraversable[String]

    Attributes
    protected[this]
    Definition Classes
    LongTraversableLike → TraversableLike
  142. def toIndexedSeq [B >: String] : IndexedSeq[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  143. def toIterable : Iterable[String]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  144. def toIterator : Iterator[String]

    Definition Classes
    TraversableLike → GenTraversableOnce
  145. def toList : List[String]

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

    Definition Classes
    TraversableOnce → GenTraversableOnce
  147. def toSeq : Seq[String]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  148. def toSet [B >: String] : Set[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  149. def toStream : Stream[String]

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

    Definition Classes
    LongTraversable → TraversableLike → AnyRef → Any
  151. def toTraversable : Traversable[String]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  152. def transpose [B] (implicit asTraversable: (String) ⇒ TraversableOnce[B]): Traversable[Traversable[B]]

    Definition Classes
    Traversable → GenericTraversableTemplate
    Annotations
    @bridge()
  153. def unzip [A1, A2] (implicit asPair: (String) ⇒ (A1, A2)): (LongTraversable[A1], LongTraversable[A2])

    Definition Classes
    GenericTraversableTemplate
  154. def unzip3 [A1, A2, A3] (implicit asTriple: (String) ⇒ (A1, A2, A3)): (LongTraversable[A1], LongTraversable[A2], LongTraversable[A3])

    Definition Classes
    GenericTraversableTemplate
  155. def view (from: Int, until: Int): TraversableView[String, LongTraversable[String]]

    Definition Classes
    TraversableLike
  156. def view : TraversableView[String, LongTraversable[String]]

    Definition Classes
    TraversableLike
  157. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  160. def withFilter (p: (String) ⇒ Boolean): FilterMonadic[String, LongTraversable[String]]

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

    Use the underlying iterator for this traversable.

    Use the underlying iterator for this traversable.

    Definition Classes
    LongTraversableLike
  162. def zip [B, A1 >: String, 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.

    Definition Classes
    LongTraversableLike
  163. def zip [B, A1 >: String, 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.

    Definition Classes
    LongTraversableLike
  164. def zipAll [B, A1 >: String, 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.

    Definition Classes
    LongTraversableLike
  165. def zipAll [B, A1 >: String, 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.

    Definition Classes
    LongTraversableLike
  166. def zipWithIndex [A1 >: String, That] (implicit bf: LongTraversableBuilder[(A1, Int), That]): That

    Zips this $coll with its indices.

    Zips this $coll with its indices.

    $orderDependent

    A1

    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 $coll paired with their index. Indices start at 0.

    Definition Classes
    LongTraversableLike

Inherited from LongTraversable[String]

Inherited from LongTraversableLike[String, LongTraversable[String]]

Inherited from Traversable[String]

Inherited from GenTraversable[String]

Inherited from GenericTraversableTemplate[String, LongTraversable]

Inherited from TraversableLike[String, LongTraversable[String]]

Inherited from GenTraversableLike[String, LongTraversable[String]]

Inherited from Parallelizable[String, ParIterable[String]]

Inherited from TraversableOnce[String]

Inherited from GenTraversableOnce[String]

Inherited from FilterMonadic[String, LongTraversable[String]]

Inherited from HasNewBuilder[String, LongTraversable[String]]

Inherited from AnyRef

Inherited from Any