scala.collection.parallel

ParIterableIterator

trait ParIterableIterator [+T] extends AugmentedIterableIterator[T] with Splitter[T] with Signalling with DelegatedSignalling

Parallel iterators allow splitting and provide a remaining method to obtain the number of elements remaining in the iterator.

Parallel iterators allow splitting and provide a remaining method to obtain the number of elements remaining in the iterator.

linear super types: DelegatedSignalling, Signalling, Splitter[T], AugmentedIterableIterator[T], RemainsIterator[T], Iterator[T], TraversableOnce[T], AnyRef, Any
known subclasses: ZippedAll, Zipped, Appended, Mapped, Taken, ParIterator, ParSeqIterator, Patched, ZippedAll, Zipped, Appended, Mapped, Taken, ParIterator, Elements, SignalContextPassingIterator, SignalContextPassingIterator, ParVectorIterator, ParHashMapIterator, ParRangeIterator, ParHashSetIterator, ParArrayIterator, EntryIterator, ParFlatHashTableIterator, ParHashSetIterator, ParHashMapIterator
self type: ParIterableIterator[T]
source: RemainsIterator.scala
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. ParIterableIterator
  2. DelegatedSignalling
  3. Signalling
  4. Splitter
  5. AugmentedIterableIterator
  6. RemainsIterator
  7. Iterator
  8. TraversableOnce
  9. AnyRef
  10. Any
Visibility
  1. Public
  2. All
Impl.
  1. Concrete
  2. Abstract

Type Members

  1. class Appended [U >: T, PI <: ParIterableIterator[U]] extends ParIterableIterator[U]

  2. class GroupedIterator [B >: A] extends Iterator[Seq[B]]

    A flexible iterator for transforming an Iterator[A] into an Iterator[Seq[A]], with configurable sequence size, step, and strategy for dealing with elements which don't fit evenly.

  3. class Mapped [S] extends ParIterableIterator[S]

  4. class Taken extends ParIterableIterator[T]

  5. class Zipped [S] extends ParIterableIterator[(T, S)]

  6. class ZippedAll [U >: T, S] extends ParIterableIterator[(U, S)]

Value Members

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

    attributes: final
    definition classes: AnyRef
  2. def != ( arg0 : Any ) : Boolean

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

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

    arg0

    the object to compare against this object for dis-equality.

    returns

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

    attributes: final
    definition classes: Any
  3. def ## () : Int

    attributes: final
    definition classes: AnyRef → Any
  4. def $asInstanceOf [T0] () : T0

    attributes: final
    definition classes: AnyRef
  5. def $isInstanceOf [T0] () : Boolean

    attributes: final
    definition classes: AnyRef
  6. def ++ ( that : ⇒ Iterator[T] ) : Iterator[T]

    [use case] Concatenates this iterator with another.

    [use case]

    Concatenates this iterator with another.

    that

    the other iterator

    returns

    a new iterator that first yields the values produced by this iterator followed by the values produced by iterator that.

    attributes: abstract
    definition classes: Iterator
  7. def ++ [B >: T] ( that : ⇒ TraversableOnce[B] ) : Iterator[B]

    Concatenates this iterator with another.

    Concatenates this iterator with another.

    that

    the other iterator

    returns

    a new iterator that first yields the values produced by this iterator followed by the values produced by iterator that.

    definition classes: Iterator
  8. def /: [B] ( z : B )( op : (B, T) ⇒ B ) : B

    Applies a binary operator to a start value and all elements of this traversable or iterator, going left to right.

    Applies a binary operator to a start value and all elements of this traversable or iterator, going left to right.

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

    Note: will not terminate for infinite iterators.

    Note: might return different results for different runs, unless the underlying collection type is ordered or the operator is associative and commutative.

    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 traversable or iterator, going left to right with the start value z on the left:

                op(...op(op(z, x,,1,,), x,,2,,), ..., x,,n,,)
    

    where x,,1,,, ..., x,,n,, are the elements of this traversable or iterator.

    definition classes: TraversableOnce
  9. def :\ [B] ( z : B )( op : (T, B) ⇒ B ) : B

    Applies a binary operator to all elements of this traversable or iterator and a start value, going right to left.

    Applies a binary operator to all elements of this traversable or iterator and a start value, going right to left.

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

    Note: will not terminate for infinite iterators.

    Note: might return different results for different runs, unless the underlying collection type is ordered or the operator is associative and commutative.

    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 traversable or iterator, going right to left with the start value z on the right:

                op(x,,1,,, op(x,,2,,, ... op(x,,n,,, z)...))
    

    where x,,1,,, ..., x,,n,, are the elements of this traversable or iterator.

    definition classes: TraversableOnce
  10. 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
  11. 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
  12. def abort () : Unit

    Sends an abort signal to other workers.

    Sends an abort signal to other workers.

    Abort flag being true means that a worker can abort and produce whatever result, since its result will not affect the final result of computation. An example of operations using this are find, forall and exists methods.

    definition classes: DelegatedSignallingSignalling
  13. def addString ( b : StringBuilder ) : StringBuilder

    Appends all elements of this traversable or iterator to a string builder.

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

    b

    the string builder to which elements are appended.

    returns

    the string builder b to which elements were appended.

    definition classes: TraversableOnce
  14. def addString ( b : StringBuilder , sep : String ) : StringBuilder

    Appends all elements of this traversable or iterator to a string builder using a separator string.

    Appends all elements of this traversable or iterator 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 traversable or iterator, separated by the string sep.

    b

    the string builder to which elements are appended.

    sep

    the separator string.

    returns

    the string builder b to which elements were appended.

    definition classes: TraversableOnce
  15. def addString ( b : StringBuilder , start : String , sep : String , end : String ) : StringBuilder

    Appends all elements of this traversable or iterator to a string builder using start, end, and separator strings.

    Appends all elements of this traversable or iterator 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 traversable or iterator are separated by the string sep.

    b

    the string builder to which elements are appended.

    start

    the starting string.

    sep

    the separator string.

    end

    the ending string.

    returns

    the string builder b to which elements were appended.

    definition classes: TraversableOnce
  16. def append [B >: T] ( that : Iterator[B] ) : Iterator[B]

    Returns a new iterator that first yields the elements of this iterator followed by the elements provided by iterator that.

    Returns a new iterator that first yields the elements of this iterator followed by the elements provided by iterator that.

    definition classes: Iterator
    annotations: @deprecated( message = "use `++`" )
      deprecated:
    1. use ++

  17. def appendParIterable [U >: T, PI <: ParIterableIterator[U]] ( that : PI ) : Appended[U, PI]

  18. def asInstanceOf [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 expression 1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expression List(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
  19. def buffered : BufferedIterator[T]

    Creates a buffered iterator from this iterator.

    Creates a buffered iterator from this iterator.

    returns

    a buffered iterator producing the same values as this iterator.

    definition classes: Iterator
      see also:
    1. BufferedIterator

  20. def buildString ( closure : ((String) ⇒ Unit) ⇒ Unit ) : String

    attributes: protected
  21. def clone () : AnyRef

    This method creates and returns a copy of the receiver object.

    This method creates and returns a copy of the receiver object.

    The default implementation of the clone method is platform dependent.

    returns

    a copy of the receiver object.

    attributes: protected[lang]
    definition classes: AnyRef
    annotations: @throws()
  22. def collect [B] ( pf : PartialFunction[T, B] ) : Iterator[B]

    Creates an iterator by transforming values produced by this iterator with a partial function, dropping those values for which the partial function is not defined.

    Creates an iterator by transforming values produced by this iterator with a partial function, dropping those values for which the partial function is not defined.

    pf

    the partial function which filters and maps the iterator.

    returns

    a new iterator which yields each value x produced by this iterator for which pf is defined the image pf(x).

    definition classes: Iterator
    annotations: @migration( 2 , 8 , ... )
  23. def collect2combiner [S, That] ( pf : PartialFunction[T, S] , cb : Combiner[S, That] ) : Combiner[S, That]

    definition classes: AugmentedIterableIterator
  24. def collectFirst [B] ( pf : PartialFunction[T, B] ) : Option[B]

    Finds the first element of the traversable or iterator for which the given partial function is defined, and applies the partial function to it.

    Finds the first element of the traversable or iterator for which the given partial function is defined, and applies the partial function to it.

    Note: may not terminate for infinite iterators. $orderDependent

    pf

    the partial function

    returns

    an option value containing pf applied to the first value for which it is defined, or None if none exists.

    definition classes: TraversableOnce
    Example :
    1. Seq("a", 1, 5L).collectFirst({ case x: Int => x*10 }) = Some(10)

  25. def contains ( elem : Any ) : Boolean

    Tests whether this iterator contains a given value as an element.

    Tests whether this iterator contains a given value as an element.

    Note: may not terminate for infinite iterators.

    elem

    the element to test.

    returns

    true if this iterator produces some value that is is equal (wrt ==) to elem, false otherwise.

    definition classes: Iterator
  26. def copy2builder [U >: T, Coll, Bld <: Builder[U, Coll]] ( b : Bld ) : Bld

    definition classes: AugmentedIterableIterator
  27. def copyToArray ( xs : Array[T] , start : Int , len : Int ) : Unit

    [use case] Copies selected values produced by this iterator to an array.

    [use case]

    Copies selected values produced by this iterator to an array. Fills the given array xs with at most len values produced by this iterator, after skipping start values. Copying will stop once either the end of the current iterator is reached, or the end of the array is reached, or len elements have been copied.

    xs

    the array to fill.

    start

    the starting index.

    len

    the maximal number of elements to copy.

    attributes: abstract
    definition classes: Iterator
  28. def copyToArray [U >: T] ( array : Array[U] , from : Int , len : Int ) : Unit

    Copies selected values produced by this iterator to an array.

    Copies selected values produced by this iterator to an array. Fills the given array xs with at most len values produced by this iterator, after skipping start values. Copying will stop once either the end of the current iterator is reached, or the end of the array is reached, or len elements have been copied.

    Note: will not terminate for infinite iterators.

    len

    the maximal number of elements to copy.

    definition classes: AugmentedIterableIterator → IteratorTraversableOnce
  29. def copyToArray ( xs : Array[T] ) : Unit

    [use case] Copies values of this traversable or iterator to an array.

    [use case]

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

    xs

    the array to fill.

    attributes: abstract
    definition classes: TraversableOnce
  30. def copyToArray [B >: T] ( xs : Array[B] ) : Unit

    Copies values of this traversable or iterator to an array.

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

    Note: will not terminate for infinite iterators.

    B

    the type of the elements of the array.

    xs

    the array to fill.

    definition classes: TraversableOnce
  31. def copyToArray ( xs : Array[T] , start : Int ) : Unit

    [use case] Copies values of this traversable or iterator to an array.

    [use case]

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

    xs

    the array to fill.

    start

    the starting index.

    attributes: abstract
    definition classes: TraversableOnce
  32. def copyToArray [B >: T] ( xs : Array[B] , start : Int ) : Unit

    Copies values of this traversable or iterator to an array.

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

    Note: will not terminate for infinite iterators.

    B

    the type of the elements of the array.

    xs

    the array to fill.

    start

    the starting index.

    definition classes: TraversableOnce
  33. def copyToBuffer [B >: T] ( dest : Buffer[B] ) : Unit

    Copies all elements of this traversable or iterator to a buffer.

    Copies all elements of this traversable or iterator to a buffer.

    Note: will not terminate for infinite iterators.

    dest

    The buffer to which elements are copied.

    definition classes: TraversableOnce
  34. def count ( p : (T) ⇒ Boolean ) : Int

    Counts the number of elements in the traversable or iterator which satisfy a predicate.

    Counts the number of elements in the traversable or iterator which satisfy a predicate.

    p

    the predicate used to test elements.

    returns

    the number of elements satisfying the predicate p.

    definition classes: AugmentedIterableIterator → TraversableOnce
  35. def counted : CountedIterator[T]

    Returns a counted iterator from this iterator.

    Returns a counted iterator from this iterator.

    definition classes: Iterator
    annotations: @deprecated( message = "use zipWithIndex in Iterator" )
      deprecated:
    1. use zipWithIndex in Iterator

  36. def drop ( n : Int ) : Iterator[T]

    Advances this iterator past the first n elements, or the length of the iterator, whichever is smaller.

    Advances this iterator past the first n elements, or the length of the iterator, whichever is smaller.

    n

    the number of elements to drop

    returns

    an iterator which produces all values of the current iterator, except it omits the first n values.

    definition classes: Iterator
  37. def drop2combiner [U >: T, This] ( n : Int , cb : Combiner[U, This] ) : Combiner[U, This]

    definition classes: AugmentedIterableIterator
  38. def dropWhile ( p : (T) ⇒ Boolean ) : Iterator[T]

    Skips longest sequence of elements of this iterator which satisfy given predicate p, and returns an iterator of the remaining elements.

    Skips longest sequence of elements of this iterator which satisfy given predicate p, and returns an iterator of the remaining elements.

    p

    the predicate used to skip elements.

    returns

    an iterator consisting of the remaining elements

    definition classes: Iterator
  39. def dup : ParIterableIterator[T]

    Creates a copy of this iterator.

    Creates a copy of this iterator.

    attributes: abstract
  40. def duplicate : (Iterator[T], Iterator[T])

    Creates two new iterators that both iterate over the same elements as this iterator (in the same order).

    Creates two new iterators that both iterate over the same elements as this iterator (in the same order). The duplicate iterators are considered equal if they are positioned at the same element.

    returns

    a pair of iterators

    definition classes: Iterator
  41. def eq ( 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
  42. def equals ( arg0 : Any ) : Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation]: * It is reflexive: for any instance x of type Any, x.equals(x) should return true. * It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true. * It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same Int (o1.hashCode.equals(o2.hashCode)).

    arg0

    the object to compare against this object for equality.

    returns

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

    definition classes: AnyRef → Any
  43. def exists ( p : (T) ⇒ Boolean ) : Boolean

    Tests whether a predicate holds for some of the values produced by this iterator.

    Tests whether a predicate holds for some of the values produced by this iterator.

    Note: may not terminate for infinite iterators.

    p

    the predicate used to test elements.

    returns

    true if the given predicate p holds for some of the values produced by this iterator, otherwise false.

    definition classes: IteratorTraversableOnce
  44. def filter ( p : (T) ⇒ Boolean ) : Iterator[T]

    Returns an iterator over all the elements of this iterator that satisfy the predicate p.

    Returns an iterator over all the elements of this iterator that satisfy the predicate p. The order of the elements is preserved.

    p

    the predicate used to test values.

    returns

    an iterator which produces those values of this iterator which satisfy the predicate p.

    definition classes: Iterator
  45. def filter2combiner [U >: T, This] ( pred : (T) ⇒ Boolean , cb : Combiner[U, This] ) : Combiner[U, This]

    definition classes: AugmentedIterableIterator
  46. def filterNot ( p : (T) ⇒ Boolean ) : Iterator[T]

    Creates an iterator over all the elements of this iterator which do not satisfy a predicate p.

    Creates an iterator over all the elements of this iterator which do not satisfy a predicate p.

    p

    the predicate used to test values.

    returns

    an iterator which produces those values of this iterator which do not satisfy the predicate p.

    definition classes: Iterator
  47. def filterNot2combiner [U >: T, This] ( pred : (T) ⇒ Boolean , cb : Combiner[U, This] ) : Combiner[U, This]

    definition classes: AugmentedIterableIterator
  48. def finalize () : Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    The details of when and if the finalize method are invoked, as well as the interaction between finalize and non-local returns and exceptions, are all platform dependent.

    attributes: protected[lang]
    definition classes: AnyRef
    annotations: @throws()
  49. def find ( p : (T) ⇒ Boolean ) : Option[T]

    Finds the first value produced by the iterator satisfying a predicate, if any.

    Finds the first value produced by the iterator satisfying a predicate, if any.

    Note: may not terminate for infinite iterators.

    p

    the predicate used to test values.

    returns

    an option value containing the first value produced by the iterator that satisfies predicate p, or None if none exists.

    definition classes: IteratorTraversableOnce
  50. def findIndexOf ( p : (T) ⇒ Boolean ) : Int

    Returns index of the first element satisfying a predicate, or -1.

    Returns index of the first element satisfying a predicate, or -1.

    definition classes: Iterator
    annotations: @deprecated( message = "use `indexWhere` instead" )
      deprecated:
    1. use indexWhere instead

  51. def flatMap [B] ( f : (T) ⇒ TraversableOnce[B] ) : Iterator[B]

    Creates a new iterator by applying a function to all values produced by this iterator and concatenating the results.

    Creates a new iterator by applying a function to all values produced by this iterator and concatenating the results.

    f

    the function to apply on each element.

    returns

    the iterator resulting from applying the given iterator-valued function f to each value produced by this iterator and concatenating the results.

    definition classes: Iterator
  52. def flatmap2combiner [S, That] ( f : (T) ⇒ TraversableOnce[S] , cb : Combiner[S, That] ) : Combiner[S, That]

    definition classes: AugmentedIterableIterator
  53. def fold [U >: T] ( z : U )( op : (U, U) ⇒ U ) : U

    definition classes: AugmentedIterableIterator
  54. def foldLeft [B] ( z : B )( op : (B, T) ⇒ B ) : B

    Applies a binary operator to a start value and all elements of this traversable or iterator, going left to right.

    Applies a binary operator to a start value and all elements of this traversable or iterator, going left to right.

    Note: will not terminate for infinite iterators.

    Note: might return different results for different runs, unless the underlying collection type is ordered or the operator is associative and commutative.

    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 traversable or iterator, going left to right with the start value z on the left:

                op(...op(z, x,,1,,), x,,2,,, ..., x,,n,,)
    

    where x,,1,,, ..., x,,n,, are the elements of this traversable or iterator.

    definition classes: TraversableOnce
  55. def foldRight [B] ( z : B )( op : (T, B) ⇒ B ) : B

    Applies a binary operator to all elements of this traversable or iterator and a start value, going right to left.

    Applies a binary operator to all elements of this traversable or iterator and a start value, going right to left.

    Note: will not terminate for infinite iterators.

    Note: might return different results for different runs, unless the underlying collection type is ordered or the operator is associative and commutative.

    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 traversable or iterator, going right to left with the start value z on the right:

                op(x,,1,,, op(x,,2,,, ... op(x,,n,,, z)...))
    

    where x,,1,,, ..., x,,n,, are the elements of this traversable or iterator.

    definition classes: TraversableOnce
  56. def forall ( p : (T) ⇒ Boolean ) : Boolean

    Tests whether a predicate holds for all values produced by this iterator.

    Tests whether a predicate holds for all values produced by this iterator.

    Note: may not terminate for infinite iterators.

    p

    the predicate used to test elements.

    returns

    true if the given predicate p holds for all values produced by this iterator, otherwise false.

    definition classes: IteratorTraversableOnce
  57. def foreach ( f : (T) ⇒ Unit ) : Unit

    [use case] Applies a function f to all values produced by this iterator.

    [use case]

    Applies a function f to all values produced by this iterator.

    f

    the function that is applied for its side-effect to every element. The result of function f is discarded.

    attributes: abstract
    definition classes: Iterator
  58. def foreach [U] ( f : (T) ⇒ U ) : Unit

    Applies a function f to all values produced by this iterator.

    Applies a function f to all values produced by this iterator.

    U

    the type parameter describing the result of function f. This result will always be ignored. Typically U is Unit, but this is not necessary.

    f

    the function that is applied for its side-effect to every element. The result of function f is discarded.

    definition classes: IteratorTraversableOnce
  59. def getClass () : java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object.

    Returns a representation that corresponds to the dynamic class of the receiver object.

    The nature of the representation is platform dependent.

    returns

    a representation that corresponds to the dynamic class of the receiver object.

    attributes: final
    definition classes: AnyRef
  60. def grouped [B >: T] ( size : Int ) : GroupedIterator[B]

    Returns an iterator which groups this iterator into fixed size blocks.

    Returns an iterator which groups this iterator into fixed size blocks. Example usages:

       // Returns List(List(1, 2, 3), List(4, 5, 6), List(7)))
       (1 to 7).iterator grouped 3 toList
       // Returns List(List(1, 2, 3), List(4, 5, 6))
       (1 to 7).iterator grouped 3 withPartial false toList
       // Returns List(List(1, 2, 3), List(4, 5, 6), List(7, 20, 25)
       // Illustrating that withPadding's argument is by-name.
       val it2 = Iterator.iterate(20)(_ + 5)
       (1 to 7).iterator grouped 3 withPadding it2.next toList
    

    definition classes: Iterator
  61. def hasDefiniteSize : Boolean

    Tests whether this Iterator has a known size.

    Tests whether this Iterator has a known size.

    returns

    true for empty Iterators, false otherwise.

    definition classes: IteratorTraversableOnce
  62. def hasNext : Boolean

    Tests whether this iterator can provide another element.

    Tests whether this iterator can provide another element.

    returns

    true if a subsequent call to next will yield an element, false otherwise.

    attributes: abstract
    definition classes: Iterator
  63. def hashCode () : Int

    Returns a hash code value for the object.

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    returns

    the hash code value for the object.

    definition classes: AnyRef → Any
  64. def indexFlag : Int

    Returns the value of the index flag.

    Returns the value of the index flag.

    The index flag holds an integer which carries some operation-specific meaning. For instance, takeWhile operation sets the index flag to the position of the element where the predicate fails. Other workers may check this index against the indices they are working on and return if this index is smaller than their index. Examples of operations using this are takeWhile, dropWhile, span and indexOf.

    returns

    the value of the index flag

    definition classes: DelegatedSignallingSignalling
  65. def indexOf [B >: T] ( elem : B ) : Int

    Returns the index of the first occurrence of the specified object in this iterable object.

    Returns the index of the first occurrence of the specified object in this iterable object.

    Note: may not terminate for infinite iterators.

    elem

    element to search for.

    returns

    the index of the first occurrence of elem in the values produced by this iterator, or -1 if such an element does not exist until the end of the iterator is reached.

    definition classes: Iterator
  66. def indexWhere ( p : (T) ⇒ Boolean ) : Int

    Returns the index of the first produced value satisfying a predicate, or -1.

    Returns the index of the first produced value satisfying a predicate, or -1.

    Note: may not terminate for infinite iterators.

    p

    the predicate to test values

    returns

    the index of the first produced value satisfying p, or -1 if such an element does not exist until the end of the iterator is reached.

    definition classes: Iterator
  67. def isAborted : Boolean

    Checks whether an abort signal has been issued.

    Checks whether an abort signal has been issued.

    Abort flag being true means that a worker can abort and produce whatever result, since its result will not affect the final result of computation. An example of operations using this are find, forall and exists methods.

    returns

    the state of the abort

    definition classes: DelegatedSignallingSignalling
  68. def isEmpty : Boolean

    Tests whether this iterator is empty.

    Tests whether this iterator is empty.

    returns

    true if hasNext is false, false otherwise.

    definition classes: IteratorTraversableOnce
  69. def isInstanceOf [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 expression 1.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.

    attributes: final
    definition classes: Any
  70. def isTraversableAgain : Boolean

    Tests whether this Iterator can be repeatedly traversed.

    Tests whether this Iterator can be repeatedly traversed.

    returns

    false

    definition classes: IteratorTraversableOnce
  71. def length : Int

    Returns the number of elements in this iterator.

    Returns the number of elements in this iterator.

    Note: will not terminate for infinite iterators.

    Note: The iterator is at its end after this method returns.

    definition classes: Iterator
  72. def map [S] ( f : (T) ⇒ S ) : Mapped[S]

    Creates a new iterator that maps all produced values of this iterator to new values using a transformation function.

    Creates a new iterator that maps all produced values of this iterator to new values using a transformation function.

    f

    the transformation function

    returns

    a new iterator which transforms every value produced by this iterator by applying the function f to it.

    definition classes: ParIterableIteratorIterator
  73. def map2combiner [S, That] ( f : (T) ⇒ S , cb : Combiner[S, That] ) : Combiner[S, That]

    definition classes: AugmentedIterableIterator
  74. def max : T

    [use case] Finds the largest element.

    [use case]

    Finds the largest element.

    returns

    the largest element of this traversable or iterator.

    attributes: abstract
    definition classes: TraversableOnce
  75. def max [U >: T] (implicit ord : Ordering[U] ) : T

    Finds the largest element.

    Finds the largest element.

    returns

    the largest element of this traversable or iterator with respect to the ordering cmp.

    definition classes: AugmentedIterableIterator → TraversableOnce
  76. def maxBy [B] ( f : (T) ⇒ B )(implicit cmp : Ordering[B] ) : T

    definition classes: TraversableOnce
  77. def min : T

    [use case] Finds the smallest element.

    [use case]

    Finds the smallest element.

    returns

    the smallest element of this traversable or iterator

    attributes: abstract
    definition classes: TraversableOnce
  78. def min [U >: T] (implicit ord : Ordering[U] ) : T

    Finds the smallest element.

    Finds the smallest element.

    returns

    the smallest element of this traversable or iterator with respect to the ordering cmp.

    definition classes: AugmentedIterableIterator → TraversableOnce
  79. def minBy [B] ( f : (T) ⇒ B )(implicit cmp : Ordering[B] ) : T

    definition classes: TraversableOnce
  80. def mkString : String

    Displays all elements of this traversable or iterator in a string.

    Displays all elements of this traversable or iterator in a string.

    returns

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

    definition classes: TraversableOnce
  81. def mkString ( sep : String ) : String

    Displays all elements of this traversable or iterator in a string using a separator string.

    Displays all elements of this traversable or iterator in a string using a separator string.

    sep

    the separator string.

    returns

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

    definition classes: TraversableOnce
    Example :
    1. List(1, 2, 3).mkString("|") = "1|2|3"

  82. def mkString ( start : String , sep : String , end : String ) : String

    Displays all elements of this traversable or iterator in a string using start, end, and separator strings.

    Displays all elements of this traversable or iterator 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 traversable or iterator. 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 traversable or iterator are separated by the string sep.

    definition classes: TraversableOnce
    Example :
    1. List(1, 2, 3).mkString("(", "; ", ")") = "(1; 2; 3)"

  83. def ne ( arg0 : AnyRef ) : Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

    o.ne(arg0) is the same as !(o.eq(arg0)).

    arg0

    the object to compare against this object for reference dis-equality.

    returns

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

    attributes: final
    definition classes: AnyRef
  84. def next () : T

    Produces the next element of this iterator.

    Produces the next element of this iterator.

    returns

    the next element of this iterator, if hasNext is true, undefined behavior otherwise.

    attributes: abstract
    definition classes: Iterator
  85. def nonEmpty : Boolean

    Tests whether the traversable or iterator is not empty.

    Tests whether the traversable or iterator is not empty.

    returns

    true if the traversable or iterator contains at least one element, false otherwise.

    definition classes: TraversableOnce
  86. def notify () : Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Wakes up a single thread that is waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  87. def notifyAll () : Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

    Wakes up all threads that are waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  88. def padTo ( len : Int , elem : T ) : Iterator[T]

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

    [use case]

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

    len

    the target length

    elem

    the padding value

    returns

    a new iterator consisting of producing all values of this iterator, followed by the minimal number of occurrences of elem so that the number of produced values is at least len.

    attributes: abstract
    definition classes: Iterator
  89. def padTo [A1 >: T] ( len : Int , elem : A1 ) : Iterator[A1]

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

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

    len

    the target length

    elem

    the padding value

    returns

    a new iterator consisting of producing all values of this iterator, followed by the minimal number of occurrences of elem so that the number of produced values is at least len.

    definition classes: Iterator
  90. def partition ( p : (T) ⇒ Boolean ) : (Iterator[T], Iterator[T])

    Partitions this iterator in two iterators according to a predicate.

    Partitions this iterator in two iterators according to a predicate.

    p

    the predicate on which to partition

    returns

    a pair of iterators: the iterator that satisfies the predicate p and the iterator that does not. The relative order of the elements in the resulting iterators is the same as in the original iterator.

    definition classes: Iterator
  91. def partition2combiners [U >: T, This] ( pred : (T) ⇒ Boolean , btrue : Combiner[U, This] , bfalse : Combiner[U, This] ) : (Combiner[U, This], Combiner[U, This])

    definition classes: AugmentedIterableIterator
  92. def patch [B >: T] ( from : Int , patchElems : Iterator[B] , replaced : Int ) : Iterator[B]

    Returns this iterator with patched values.

    Returns this iterator with patched values.

    from

    The start index from which to patch

    replaced

    The number of values in the original iterator that are replaced by the patch.

    definition classes: Iterator
  93. def product : T

    [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 traversable or iterator 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 traversable or iterator and as result type of product. Examples of such types are: Long, Float, Double, BigInt.

    attributes: abstract
    definition classes: TraversableOnce
  94. def product [U >: T] (implicit num : Numeric[U] ) : U

    Multiplies up the elements of this collection.

    Multiplies up the elements of this collection.

    num

    an implicit parameter defining a set of numeric operations which includes the * operator to be used in forming the product.

    returns

    the product of all elements of this traversable or iterator with respect to the * operator in num.

    definition classes: AugmentedIterableIterator → TraversableOnce
  95. def readInto [B >: T] ( xs : Array[B] ) : Unit

    definition classes: Iterator
    annotations: @deprecated( message = "use copyToArray instead" )
      deprecated:
    1. use copyToArray instead

  96. def readInto [B >: T] ( xs : Array[B] , start : Int ) : Unit

    definition classes: Iterator
    annotations: @deprecated( message = "use copyToArray instead" )
      deprecated:
    1. use copyToArray instead

  97. def readInto [B >: T] ( xs : Array[B] , start : Int , sz : Int ) : Unit

    Fills the given array xs with the elements of this sequence starting at position start.

    Fills the given array xs with the elements of this sequence starting at position start. Like copyToArray, but designed to accomodate IO stream operations.

    Note: the array must be large enough to hold sz elements.

    xs

    the array to fill.

    start

    the starting index.

    sz

    the maximum number of elements to be read.

    definition classes: Iterator
    annotations: @deprecated( message = "use copyToArray instead" )
      deprecated:
    1. use copyToArray instead

  98. def reduce [U >: T] ( op : (U, U) ⇒ U ) : U

    definition classes: AugmentedIterableIterator
  99. def reduceLeft [U >: T] ( howmany : Int , op : (U, U) ⇒ U ) : U

    definition classes: AugmentedIterableIterator
  100. def reduceLeft [B >: T] ( op : (B, T) ⇒ B ) : B

    Applies a binary operator to all elements of this traversable or iterator, going left to right.

    Applies a binary operator to all elements of this traversable or iterator, going left to right.

    Note: will not terminate for infinite iterators.

    Note: might return different results for different runs, unless the underlying collection type is ordered or the operator is associative and commutative.

    B

    the result type of the binary operator.

    op

    the binary operator.

    returns

    the result of inserting op between consecutive elements of this traversable or iterator, going left to right:

                op(...(op(x,,1,,, x,,2,,), ... ) , x,,n,,)
    

    where x,,1,,, ..., x,,n,, are the elements of this traversable or iterator.

    definition classes: TraversableOnce
  101. def reduceLeftOption [B >: T] ( op : (B, T) ⇒ B ) : Option[B]

    Optionally applies a binary operator to all elements of this traversable or iterator, going left to right.

    Optionally applies a binary operator to all elements of this traversable or iterator, going left to right.

    Note: will not terminate for infinite iterators.

    Note: might return different results for different runs, unless the underlying collection type is ordered or the operator is associative and commutative.

    B

    the result type of the binary operator.

    op

    the binary operator.

    returns

    an option value containing the result of reduceLeft(op) is this traversable or iterator is nonempty, None otherwise.

    definition classes: TraversableOnce
  102. def reduceRight [B >: T] ( op : (T, B) ⇒ B ) : B

    Applies a binary operator to all elements of this traversable or iterator, going right to left.

    Applies a binary operator to all elements of this traversable or iterator, going right to left.

    Note: will not terminate for infinite iterators.

    Note: might return different results for different runs, unless the underlying collection type is ordered or the operator is associative and commutative.

    B

    the result type of the binary operator.

    op

    the binary operator.

    returns

    the result of inserting op between consecutive elements of this traversable or iterator, going right to left:

                op(x,,1,,, op(x,,2,,, ..., op(x,,n-1,,, x,,n,,)...))
    

    where x,,1,,, ..., x,,n,, are the elements of this traversable or iterator.

    definition classes: TraversableOnce
  103. def reduceRightOption [B >: T] ( op : (T, B) ⇒ B ) : Option[B]

    Optionally applies a binary operator to all elements of this traversable or iterator, going right to left.

    Optionally applies a binary operator to all elements of this traversable or iterator, going right to left.

    Note: will not terminate for infinite iterators.

    Note: might return different results for different runs, unless the underlying collection type is ordered or the operator is associative and commutative.

    B

    the result type of the binary operator.

    op

    the binary operator.

    returns

    an option value containing the result of reduceRight(op) is this traversable or iterator is nonempty, None otherwise.

    definition classes: TraversableOnce
  104. def remaining : Int

    The number of elements this iterator has yet to traverse.

    The number of elements this iterator has yet to traverse. This method doesn't change the state of the iterator.

    This method is used to provide size hints to builders and combiners, and to approximate positions of iterators within a data structure.

    Note: This method may be implemented to return an upper bound on the number of elements in the iterator, instead of the exact number of elements to iterate. Parallel collections which have such iterators are called non-strict-splitter collections.

    In that case, 2 considerations must be taken into account:

    1) classes that inherit ParIterable must reimplement methods take, drop, slice, splitAt, copyToArray and all others using this information.

    2) if an iterator provides an upper bound on the number of elements, then after splitting the sum of remaining values of split iterators must be less than or equal to this upper bound.

    attributes: abstract
    definition classes: ParIterableIterator → RemainsIterator
  105. def reversed : List[T]

    attributes: protected[this]
    definition classes: TraversableOnce
  106. def sameElements ( that : Iterator[_] ) : Boolean

    Tests if another iterator produces the same values as this one.

    Tests if another iterator produces the same values as this one.

    Note: will not terminate for infinite iterators.

    that

    the other iterator

    returns

    true, if both iterators produce the same elements in the same order, false otherwise.

    definition classes: Iterator
  107. def scanLeft [B] ( z : B )( op : (B, T) ⇒ B ) : Iterator[B]

    definition classes: Iterator
  108. def scanRight [B] ( z : B )( op : (T, B) ⇒ B ) : Iterator[B]

    definition classes: Iterator
  109. def scanToArray [U >: T, A >: U] ( z : U , op : (U, U) ⇒ U , array : Array[A] , from : Int ) : Unit

    definition classes: AugmentedIterableIterator
  110. def scanToCombiner [U >: T, That] ( howmany : Int , startValue : U , op : (U, U) ⇒ U , cb : Combiner[U, That] ) : Combiner[U, That]

    definition classes: AugmentedIterableIterator
  111. def scanToCombiner [U >: T, That] ( startValue : U , op : (U, U) ⇒ U , cb : Combiner[U, That] ) : Combiner[U, That]

    definition classes: AugmentedIterableIterator
  112. def seq : TraversableOnce[T]

    A version of this collection with all of the operations implemented sequentially (i.

    A version of this collection with all of the operations implemented sequentially (i.e. in a single-threaded manner).

    This method returns a reference to this collection. In parallel collections, it is redefined to return a sequential implementation of this collection. In both cases, it has O(1) complexity.

    returns

    a sequential view of the collection.

    definition classes: TraversableOnce
  113. def setIndexFlag ( f : Int ) : Unit

    Sets the value of the index flag.

    Sets the value of the index flag.

    The index flag holds an integer which carries some operation-specific meaning. For instance, takeWhile operation sets the index flag to the position of the element where the predicate fails. Other workers may check this index against the indices they are working on and return if this index is smaller than their index. Examples of operations using this are takeWhile, dropWhile, span and indexOf.

    f

    the value to which the index flag is set.

    definition classes: DelegatedSignallingSignalling
  114. def setIndexFlagIfGreater ( f : Int ) : Unit

    Sets the value of the index flag if argument is greater than current value.

    Sets the value of the index flag if argument is greater than current value. This method does this atomically.

    The index flag holds an integer which carries some operation-specific meaning. For instance, takeWhile operation sets the index flag to the position of the element where the predicate fails. Other workers may check this index against the indices they are working on and return if this index is smaller than their index. Examples of operations using this are takeWhile, dropWhile, span and indexOf.

    f

    the value to which the index flag is set

    definition classes: DelegatedSignallingSignalling
  115. def setIndexFlagIfLesser ( f : Int ) : Unit

    Sets the value of the index flag if argument is lesser than current value.

    Sets the value of the index flag if argument is lesser than current value. This method does this atomically.

    The index flag holds an integer which carries some operation-specific meaning. For instance, takeWhile operation sets the index flag to the position of the element where the predicate fails. Other workers may check this index against the indices they are working on and return if this index is smaller than their index. Examples of operations using this are takeWhile, dropWhile, span and indexOf.

    f

    the value to which the index flag is set

    definition classes: DelegatedSignallingSignalling
  116. val signalDelegate : Signalling

    A delegate that method calls are redirected to.

    A delegate that method calls are redirected to.

    attributes: abstract
    definition classes: DelegatedSignalling
  117. def size : Int

    The size of this traversable or iterator.

    The size of this traversable or iterator.

    Note: will not terminate for infinite iterators.

    returns

    the number of elements in this traversable or iterator.

    definition classes: TraversableOnce
  118. def slice ( from1 : Int , until1 : Int ) : ParIterableIterator[T]

    Creates an iterator returning an interval of the values produced by this iterator.

    Creates an iterator returning an interval of the values produced by this iterator.

    returns

    an iterator which advances this iterator past the first from elements using drop, and then takes until - from elements, using take.

    definition classes: ParIterableIteratorIterator
  119. def slice2combiner [U >: T, This] ( from : Int , until : Int , cb : Combiner[U, This] ) : Combiner[U, This]

    definition classes: AugmentedIterableIterator
  120. def sliding [B >: T] ( size : Int , step : Int = 1 ) : GroupedIterator[B]

    Returns an iterator which presents a "sliding window" view of another iterator.

    Returns an iterator which presents a "sliding window" view of another iterator. The first argument is the window size, and the second is how far to advance the window on each iteration; defaults to 1. Example usages:

       // Returns List(List(1, 2, 3), List(2, 3, 4), List(3, 4, 5))
       (1 to 5).iterator.sliding(3).toList
       // Returns List(List(1, 2, 3, 4), List(4, 5))
       (1 to 5).iterator.sliding(4, 3).toList
       // Returns List(List(1, 2, 3, 4))
       (1 to 5).iterator.sliding(4, 3).withPartial(false).toList
       // Returns List(List(1, 2, 3, 4), List(4, 5, 20, 25))
       // Illustrating that withPadding's argument is by-name.
       val it2 = Iterator.iterate(20)(_ + 5)
       (1 to 5).iterator.sliding(4, 3).withPadding(it2.next).toList
    

    definition classes: Iterator
  121. def span ( p : (T) ⇒ Boolean ) : (Iterator[T], Iterator[T])

    Splits this Iterator into a prefix/suffix pair according to a predicate.

    Splits this Iterator into a prefix/suffix pair according to a predicate.

    p

    the test predicate

    returns

    a pair of Iterators consisting of the longest prefix of this whose elements all satisfy p, and the rest of the Iterator.

    definition classes: Iterator
  122. def span2combiners [U >: T, This] ( p : (T) ⇒ Boolean , before : Combiner[U, This] , after : Combiner[U, This] ) : (Combiner[U, This], Combiner[U, This])

    definition classes: AugmentedIterableIterator
  123. def split : Seq[ParIterableIterator[T]]

    Splits the iterator into a sequence of disjunct views.

    Splits the iterator into a sequence of disjunct views.

    Returns a sequence of split iterators, each iterating over some subset of the elements in the collection. These subsets are disjoint and should be approximately equal in size. These subsets are not empty, unless the iterator is empty in which case this method returns a sequence with a single empty iterator. If the splitter has more than two elements, this method will return two or more splitters.

    Implementors are advised to keep this partition relatively small - two splitters are already enough when partitioning the collection, although there may be a few more.

    Note: this method actually invalidates the current splitter.

    returns

    a sequence of disjunct iterators of the collection

    attributes: abstract
    definition classes: ParIterableIteratorSplitter
  124. def splitAt2combiners [U >: T, This] ( at : Int , before : Combiner[U, This] , after : Combiner[U, This] ) : (Combiner[U, This], Combiner[U, This])

    definition classes: AugmentedIterableIterator
  125. def sum : T

    [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 traversable or iterator 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 traversable or iterator and as result type of sum. Examples of such types are: Long, Float, Double, BigInt.

    attributes: abstract
    definition classes: TraversableOnce
  126. def sum [U >: T] (implicit num : Numeric[U] ) : U

    Sums up the elements of this collection.

    Sums up the elements of this collection.

    num

    an implicit parameter defining a set of numeric operations which includes the + operator to be used in forming the sum.

    returns

    the sum of all elements of this traversable or iterator with respect to the + operator in num.

    definition classes: AugmentedIterableIterator → TraversableOnce
  127. def synchronized [T0] ( arg0 : ⇒ T0 ) : T0

    attributes: final
    definition classes: AnyRef
  128. def tag : Int

    A read only tag specific to the signalling object.

    A read only tag specific to the signalling object. It is used to give specific workers information on the part of the collection being operated on.

    definition classes: DelegatedSignallingSignalling
  129. def take ( n : Int ) : ParIterableIterator[T]

    Selects first n values of this iterator.

    Selects first n values of this iterator.

    n

    the number of values to take

    returns

    an iterator producing only of the first n values of this iterator, or else the whole iterator, if it produces fewer than n values.

    definition classes: ParIterableIteratorIterator
  130. def take2combiner [U >: T, This] ( n : Int , cb : Combiner[U, This] ) : Combiner[U, This]

    definition classes: AugmentedIterableIterator
  131. def takeWhile ( p : (T) ⇒ Boolean ) : Iterator[T]

    Takes longest prefix of values produced by this iterator that satisfy a predicate.

    Takes longest prefix of values produced by this iterator that satisfy a predicate.

    p

    The predicate used to test elements.

    returns

    An iterator returning the values produced by this iterator, until this iterator produces a value that does not satisfy the predicate p.

    definition classes: Iterator
  132. def takeWhile2combiner [U >: T, This] ( p : (T) ⇒ Boolean , cb : Combiner[U, This] ) : (Combiner[U, This], Boolean)

    definition classes: AugmentedIterableIterator
  133. def toArray : Array[T]

    [use case] Converts this traversable or iterator to an array.

    [use case]

    Converts this traversable or iterator to an array.

    Note: will not terminate for infinite iterators.

    returns

    an array containing all elements of this traversable or iterator. A ClassManifest must be available for the element type of this traversable or iterator.

    attributes: abstract
    definition classes: TraversableOnce
  134. def toArray [B >: T] (implicit arg0 : ClassManifest[B] ) : Array[B]

    Converts this traversable or iterator to an array.

    Converts this traversable or iterator to an array.

    Note: will not terminate for infinite iterators.

    B

    the type of the elements of the array. A ClassManifest for this type must be available.

    returns

    an array containing all elements of this traversable or iterator.

    definition classes: TraversableOnce
  135. def toBuffer [B >: T] : Buffer[B]

    Converts this traversable or iterator to a mutable buffer.

    Converts this traversable or iterator to a mutable buffer.

    Note: will not terminate for infinite iterators.

    returns

    a buffer containing all elements of this traversable or iterator.

    definition classes: TraversableOnce
  136. def toIndexedSeq [B >: T] : IndexedSeq[B]

    Converts this traversable or iterator to an indexed sequence.

    Converts this traversable or iterator to an indexed sequence.

    Note: will not terminate for infinite iterators.

    returns

    an indexed sequence containing all elements of this traversable or iterator.

    definition classes: TraversableOnce
  137. def toIterable : Iterable[T]

    Converts this traversable or iterator to an iterable collection.

    Converts this traversable or iterator 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).

    Note: will not terminate for infinite iterators.

    returns

    an Iterable containing all elements of this traversable or iterator.

    definition classes: TraversableOnce
  138. def toIterator : Iterator[T]

    Returns an Iterator over the elements in this traversable or iterator.

    Returns an Iterator over the elements in this traversable or iterator. Will return the same Iterator if this instance is already an Iterator.

    Note: will not terminate for infinite iterators.

    returns

    an Iterator containing all elements of this traversable or iterator.

    definition classes: IteratorTraversableOnce
  139. def toList : List[T]

    Converts this traversable or iterator to a list.

    Converts this traversable or iterator to a list.

    Note: will not terminate for infinite iterators.

    returns

    a list containing all elements of this traversable or iterator.

    definition classes: TraversableOnce
  140. def toMap [T, U] : Map[T, U]

    [use case] Converts this traversable or iterator to a map.

    [use case]

    Converts this traversable or iterator to a map. This method is unavailable unless the elements are members of Tuple2, each ((T, U)) 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.

    Note: will not terminate for infinite iterators.

    returns

    a map of type immutable.Map[T, U] containing all key/value pairs of type (T, U) of this traversable or iterator.

    attributes: abstract
    definition classes: TraversableOnce
  141. def toMap [T, U] (implicit ev : <:<[T, (T, U)] ) : Map[T, U]

    Converts this traversable or iterator to a map.

    Converts this traversable or iterator to a map. This method is unavailable unless the elements are members of Tuple2, each ((T, U)) 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.

    Note: will not terminate for infinite iterators.

    returns

    a map containing all elements of this traversable or iterator.

    definition classes: TraversableOnce
  142. def toSeq : Seq[T]

    Converts this traversable or iterator to a sequence.

    Converts this traversable or iterator to a sequence. As with toIterable, it's lazy in this default implementation, as this TraversableOnce may be lazy and unevaluated.

    Note: will not terminate for infinite iterators.

    returns

    a sequence containing all elements of this traversable or iterator.

    definition classes: TraversableOnce
  143. def toSet [B >: T] : Set[B]

    Converts this traversable or iterator to a set.

    Converts this traversable or iterator to a set.

    Note: will not terminate for infinite iterators.

    returns

    a set containing all elements of this traversable or iterator.

    definition classes: TraversableOnce
  144. def toStream : Stream[T]

    Converts this traversable or iterator to a stream.

    Converts this traversable or iterator to a stream.

    Note: will not terminate for infinite iterators.

    returns

    a stream containing all elements of this traversable or iterator.

    definition classes: IteratorTraversableOnce
  145. def toString () : String

    Converts this iterator to a string.

    Converts this iterator to a string.

    returns

    "empty iterator" or "non-empty iterator", depending on whether or not the iterator is empty.

    definition classes: Iterator → AnyRef → Any
  146. def toTraversable : Traversable[T]

    Converts this traversable or iterator to an unspecified Traversable.

    Converts this traversable or iterator to an unspecified Traversable. Will return the same collection if this instance is already Traversable.

    Note: will not terminate for infinite iterators.

    returns

    a Traversable containing all elements of this traversable or iterator.

    definition classes: IteratorTraversableOnce
  147. def wait () : Unit

    attributes: final
    definition classes: AnyRef
    annotations: @throws()
  148. def wait ( arg0 : Long , arg1 : Int ) : Unit

    attributes: final
    definition classes: AnyRef
    annotations: @throws()
  149. def wait ( arg0 : Long ) : Unit

    attributes: final
    definition classes: AnyRef
    annotations: @throws()
  150. def withFilter ( p : (T) ⇒ Boolean ) : Iterator[T]

    Creates an iterator over all the elements of this iterator that satisfy the predicate p.

    Creates an iterator over all the elements of this iterator that satisfy the predicate p. The order of the elements is preserved.

    Note: withFilter is the same as filter on iterators. It exists so that for-expressions with filters work over iterators.

    p

    the predicate used to test values.

    returns

    an iterator which produces those values of this iterator which satisfy the predicate p.

    definition classes: Iterator
  151. def zip [B] ( that : Iterator[B] ) : Iterator[(T, B)]

    Creates an iterator formed from this iterator and another iterator by combining corresponding values in pairs.

    Creates an iterator formed from this iterator and another iterator by combining corresponding values in pairs. If one of the two iterators is longer than the other, its remaining elements are ignored.

    that

    The iterator providing the second half of each result pair

    returns

    a new iterator containing pairs consisting of corresponding elements of this iterator and that. The number of elements returned by the new iterator is the minimum of the number of elements returned by this iterator and that.

    definition classes: Iterator
  152. def zip2combiner [U >: T, S, That] ( otherpit : RemainsIterator[S] , cb : Combiner[(U, S), That] ) : Combiner[(U, S), That]

    definition classes: AugmentedIterableIterator
  153. def zipAll [B] ( that : Iterator[B] , thisElem : T , thatElem : B ) : Iterator[(T, B)]

    [use case] Creates an iterator formed from this iterator and another iterator by combining corresponding elements in pairs.

    [use case]

    Creates an iterator formed from this iterator and another iterator by combining corresponding elements in pairs. If one of the two iterators is shorter than the other, placeholder elements are used to extend the shorter iterator to the length of the longer.

    that

    iterator that may have a different length as the self iterator.

    thisElem

    element thisElem is used to fill up the resulting iterator if the self iterator is shorter than that

    thatElem

    element thatElem is used to fill up the resulting iterator if that is shorter than the self iterator

    returns

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

    attributes: abstract
    definition classes: Iterator
  154. def zipAll [B, A1 >: T, B1 >: B] ( that : Iterator[B] , thisElem : A1 , thatElem : B1 ) : Iterator[(A1, B1)]

    Creates an iterator formed from this iterator and another iterator by combining corresponding elements in pairs.

    Creates an iterator formed from this iterator and another iterator by combining corresponding elements in pairs. If one of the two iterators is shorter than the other, placeholder elements are used to extend the shorter iterator to the length of the longer.

    that

    iterator that may have a different length as the self iterator.

    thisElem

    element thisElem is used to fill up the resulting iterator if the self iterator is shorter than that

    thatElem

    element thatElem is used to fill up the resulting iterator if that is shorter than the self iterator

    returns

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

    definition classes: Iterator
  155. def zipAll2combiner [U >: T, S, That] ( that : RemainsIterator[S] , thiselem : U , thatelem : S , cb : Combiner[(U, S), That] ) : Combiner[(U, S), That]

    definition classes: AugmentedIterableIterator
  156. def zipAllParSeq [S, U >: T, R >: S] ( that : ParSeqIterator[S] , thisElem : U , thatElem : R ) : ZippedAll[U, R]

  157. def zipParSeq [S] ( that : ParSeqIterator[S] ) : Zipped[S]

  158. def zipWithIndex : Iterator[(T, Int)] {...}

    Creates an iterator that pairs each element produced by this iterator with its index, counting from 0.

    Creates an iterator that pairs each element produced by this iterator with its index, counting from 0.

    definition classes: Iterator

Inherited from DelegatedSignalling

Inherited from Signalling

Inherited from Splitter[T]

Inherited from AugmentedIterableIterator[T]

Inherited from RemainsIterator[T]

Inherited from Iterator[T]

Inherited from TraversableOnce[T]

Inherited from AnyRef

Inherited from Any