Packages

c

scala.collection.decorators

IteratorDecorator

final class IteratorDecorator[A] extends AnyVal

Enriches Iterator with additional methods.

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IteratorDecorator
  2. AnyVal
  3. Any
Implicitly
  1. by MapDecorator
  2. by SeqDecorator
  3. by IterableDecorator
  4. by any2stringadd
  5. by StringFormat
  6. by Ensuring
  7. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new IteratorDecorator(this: Iterator[A])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from IteratorDecorator[A] toany2stringadd[IteratorDecorator[A]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (IteratorDecorator[A], B)
    Implicit
    This member is added by an implicit conversion from IteratorDecorator[A] toArrowAssoc[IteratorDecorator[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def ensuring(cond: (IteratorDecorator[A]) => Boolean, msg: => Any): IteratorDecorator[A]
    Implicit
    This member is added by an implicit conversion from IteratorDecorator[A] toEnsuring[IteratorDecorator[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  8. def ensuring(cond: (IteratorDecorator[A]) => Boolean): IteratorDecorator[A]
    Implicit
    This member is added by an implicit conversion from IteratorDecorator[A] toEnsuring[IteratorDecorator[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: Boolean, msg: => Any): IteratorDecorator[A]
    Implicit
    This member is added by an implicit conversion from IteratorDecorator[A] toEnsuring[IteratorDecorator[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean): IteratorDecorator[A]
    Implicit
    This member is added by an implicit conversion from IteratorDecorator[A] toEnsuring[IteratorDecorator[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def foldSomeLeft[B](z: B)(op: (B, A) => Option[B]): B

    Folds elements with combination function op until all elements have been processed, or op returns None.

    Folds elements with combination function op until all elements have been processed, or op returns None.

    Note: may not terminate for infinite iterators.

    def sumOp(acc: Int, e: Int): Option[Int] = if (e == 4) None else Some(acc + e)
    Iterator.empty.foldSomeLeft(0)(sumOp) === 0
    Iterator(1, 2, 3).foldSomeLeft(0)(sumOp) === 6
    Iterator(1, 2, 3, 4, 5).foldSomeLeft(0)(sumOp) === 6

    The === operator in this pseudo code stands for 'is equivalent to'; both sides of the === give the same result.

    B

    the result type of the binary operator

    z

    the start value

    op

    the binary operator

    returns

    the result of evaluating op on the previous result of op (or z for the first time) and elements of the source iterator, stopping when all the elements have been iterated or earlier when op returns None

    Note

    Reuse: After calling this method, one should discard the iterator it was called on. Using it is undefined and subject to change.

  12. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from IteratorDecorator[A] toStringFormat[IteratorDecorator[A]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  13. final def fullOuterJoin[W, That]: ([W, That](other: scala.collection.Map[_1.map.K,W])(implicit bf: scala.collection.BuildFrom[scala.collection.decorators.IteratorDecorator[A],(_1.map.K, (Option[_1.map.V], Option[W])),That])That) forSome {val _1: MapDecorator[IteratorDecorator[A], map.type]}

    Alias for mergeByKey

    Alias for mergeByKey

    Implicit
    This member is added by an implicit conversion from IteratorDecorator[A] toMapDecorator[IteratorDecorator[A], map.type] performed by method MapDecorator in scala.collection.decorators.This conversion will take place only if an implicit value of type IsMap[IteratorDecorator[A]] is in scope.
    Definition Classes
    MapDecorator
    Annotations
    @inline()
  14. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  15. def intersperse[B >: A](start: B, sep: B, end: B): Iterator[B]

    Inserts a start value at the start of the iterator, a separator value between each element, and an end value at the end of the iterator.

    Inserts a start value at the start of the iterator, a separator value between each element, and an end value at the end of the iterator.

    Iterator(1, 2, 3).intersperse(-1, 0, 99) === Iterator(-1, 1, 0, 2, 0, 3, 99)
    Iterator('a', 'b', 'c').intersperse('[', ',', ']') === Iterator('[', 'a', ',', 'b', ',', 'c', ']')
    Iterator('a').intersperse('[', ',', ']') === Iterator('[', 'a', ']')
    Iterator().intersperse('[', ',', ']') === Iterator('[', ']')

    The === operator in this pseudo code stands for 'is equivalent to'; both sides of the === give the same result.

    start

    the starting value.

    sep

    the separator value.

    end

    the ending value.

    returns

    The resulting iterator begins with the start value and ends with the end value. Inside, are all elements from the source iterator separated by the sep value.

    Note

    Reuse: After calling this method, one should discard the iterator it was called on, and use only the iterator that was returned. Using the old iterator is undefined, subject to change, and may result in changes to the new iterator as well.

  16. def intersperse[B >: A](sep: B): Iterator[B]

    Inserts a separator value between each element.

    Inserts a separator value between each element.

    Iterator(1, 2, 3).intersperse(0) === Iterator(1, 0, 2, 0, 3)
    Iterator('a', 'b', 'c').intersperse(',') === Iterator('a', ',', 'b', ',', 'c')
    Iterator('a').intersperse(',') === Iterator('a')
    Iterator().intersperse(',') === Iterator()

    The === operator in this pseudo code stands for 'is equivalent to'; both sides of the === give the same result.

    sep

    the separator value.

    returns

    The resulting iterator contains all elements from the source iterator, separated by the sep value.

    Note

    Reuse: After calling this method, one should discard the iterator it was called on, and use only the iterator that was returned. Using the old iterator is undefined, subject to change, and may result in changes to the new iterator as well.

  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. implicit val it: it.type
    Implicit
    This member is added by an implicit conversion from IteratorDecorator[A] toIterableDecorator[IteratorDecorator[A], it.type] performed by method IterableDecorator in scala.collection.decorators.This conversion will take place only if an implicit value of type IsIterable[IteratorDecorator[A]] is in scope.
    Definition Classes
    IterableDecorator
  19. final def join[W, That]: ([W, That](other: scala.collection.Map[_1.map.K,W])(implicit bf: scala.collection.BuildFrom[scala.collection.decorators.IteratorDecorator[A],(_1.map.K, (_1.map.V, W)),That])That) forSome {val _1: MapDecorator[IteratorDecorator[A], map.type]}

    Alias for zipByKey

    Alias for zipByKey

    Implicit
    This member is added by an implicit conversion from IteratorDecorator[A] toMapDecorator[IteratorDecorator[A], map.type] performed by method MapDecorator in scala.collection.decorators.This conversion will take place only if an implicit value of type IsMap[IteratorDecorator[A]] is in scope.
    Definition Classes
    MapDecorator
    Annotations
    @inline()
  20. def lazyFoldLeft[B](z: B)(op: (B, => A) => B): B

    Note: may not terminate for infinite iterators.

    Note: may not terminate for infinite iterators.

    Note

    Reuse: After calling this method, one should discard the iterator it was called on. Using it is undefined and subject to change.

  21. def lazyFoldRight[B](z: B)(op: (A) => Either[B, (B) => B]): B

    Note: does not terminate for infinite iterators.

    Note: does not terminate for infinite iterators.

    Note

    Reuse: After calling this method, one should discard the iterator it was called on. Using it is undefined and subject to change.

  22. def leftOuterJoin[W, That]: ([W, That](other: scala.collection.Map[_1.map.K,W])(implicit bf: scala.collection.BuildFrom[scala.collection.decorators.IteratorDecorator[A],(_1.map.K, (_1.map.V, Option[W])),That])That) forSome {val _1: MapDecorator[IteratorDecorator[A], map.type]}

    Perform a left outer join of this and that.

    Perform a left outer join of this and that.

    Equivalent to mergeByKeyWith(that) { case (Some(v), maybeW) => (v, maybeW) }.

    W

    Type of values of that

    That

    Type of the resulting collection

    returns

    A Map that associates all the keys k of this to pairs (v, Some(w)) if that associates k to w, or (v, None) if that doesn’t contain k

    Implicit
    This member is added by an implicit conversion from IteratorDecorator[A] toMapDecorator[IteratorDecorator[A], map.type] performed by method MapDecorator in scala.collection.decorators.This conversion will take place only if an implicit value of type IsMap[IteratorDecorator[A]] is in scope.
    Definition Classes
    MapDecorator
  23. implicit val map: map.type
    Implicit
    This member is added by an implicit conversion from IteratorDecorator[A] toMapDecorator[IteratorDecorator[A], map.type] performed by method MapDecorator in scala.collection.decorators.This conversion will take place only if an implicit value of type IsMap[IteratorDecorator[A]] is in scope.
    Definition Classes
    MapDecorator
  24. final def mergeByKey[W, That]: ([W, That](other: scala.collection.Map[_1.map.K,W])(implicit bf: scala.collection.BuildFrom[scala.collection.decorators.IteratorDecorator[A],(_1.map.K, (Option[_1.map.V], Option[W])),That])That) forSome {val _1: MapDecorator[IteratorDecorator[A], map.type]}

    Perform a full outer join of this and that.

    Perform a full outer join of this and that.

    Equivalent to mergeByKeyWith(that) { case any => any }.

    W

    Type of values of that (e.g. String)

    That

    Type of the resulting collection (e.g. Map[Int, (Option[Boolean], Option[String])])

    returns

    A Map that associates all the keys k of this or that to pairs (Some(v), Some(w)) if this associates k to v and that associates k to w, or pairs (None, Some(w)) if this doesn’t contain k, or pairs (Some(v), None) if that doesn’t contain k

    Implicit
    This member is added by an implicit conversion from IteratorDecorator[A] toMapDecorator[IteratorDecorator[A], map.type] performed by method MapDecorator in scala.collection.decorators.This conversion will take place only if an implicit value of type IsMap[IteratorDecorator[A]] is in scope.
    Definition Classes
    MapDecorator
    Annotations
    @inline()
  25. def mergeByKeyWith[W, X, That]: ([W, X, That](other: scala.collection.Map[_1.map.K,W])(f: PartialFunction[(Option[_1.map.V], Option[W]),X])(implicit bf: scala.collection.BuildFrom[scala.collection.decorators.IteratorDecorator[A],(_1.map.K, X),That])That) forSome {val _1: MapDecorator[IteratorDecorator[A], map.type]}

    W

    Type of values of the other Map (e.g. Int, String)

    X

    Type of values of the resulting Map

    That

    Type of the result (e.g. Map[Int, (String, Option[Boolean])])

    returns

    A Map associating all the keys from this and that with values returned by the partial function f, when this one is defined.

    Implicit
    This member is added by an implicit conversion from IteratorDecorator[A] toMapDecorator[IteratorDecorator[A], map.type] performed by method MapDecorator in scala.collection.decorators.This conversion will take place only if an implicit value of type IsMap[IteratorDecorator[A]] is in scope.
    Definition Classes
    MapDecorator
  26. def replaced[B >: SeqDecorator.S.A, That]: ([B, That](elem: B, replacement: B)(implicit bf: scala.collection.BuildFrom[scala.collection.decorators.IteratorDecorator[A],B,That])That) forSome {val _1: SeqDecorator[IteratorDecorator[A], seq.type]}

    Produces a new sequence where all occurrences of some element are replaced by a different element.

    Produces a new sequence where all occurrences of some element are replaced by a different element.

    B

    the element type of the returned collection.

    returns

    a new sequence consisting of all elements of this sequence except that all occurrences of elem are replaced by replacement

    Implicit
    This member is added by an implicit conversion from IteratorDecorator[A] toSeqDecorator[IteratorDecorator[A], seq.type] performed by method SeqDecorator in scala.collection.decorators.This conversion will take place only if an implicit value of type IsSeq[IteratorDecorator[A]] is in scope.
    Definition Classes
    SeqDecorator
  27. def rightOuterJoin[W, That]: ([W, That](other: scala.collection.Map[_1.map.K,W])(implicit bf: scala.collection.BuildFrom[scala.collection.decorators.IteratorDecorator[A],(_1.map.K, (Option[_1.map.V], W)),That])That) forSome {val _1: MapDecorator[IteratorDecorator[A], map.type]}

    Perform a right outer join of this and that.

    Perform a right outer join of this and that.

    Equivalent to mergeByKeyWith(that) { case (maybeV, Some(w)) => (maybeV, w) }.

    W

    Type of values of that (e.g. String)

    That

    Type of the resulting collection (e.g. Map[Int, (Option[Boolean], String)])

    returns

    A Map that associates all the keys k of that to pairs (Some(v), w) if this associates k to v, or (None, w) if this doesn’t contain k

    Implicit
    This member is added by an implicit conversion from IteratorDecorator[A] toMapDecorator[IteratorDecorator[A], map.type] performed by method MapDecorator in scala.collection.decorators.This conversion will take place only if an implicit value of type IsMap[IteratorDecorator[A]] is in scope.
    Definition Classes
    MapDecorator
  28. implicit val seq: seq.type
    Implicit
    This member is added by an implicit conversion from IteratorDecorator[A] toSeqDecorator[IteratorDecorator[A], seq.type] performed by method SeqDecorator in scala.collection.decorators.This conversion will take place only if an implicit value of type IsSeq[IteratorDecorator[A]] is in scope.
    Definition Classes
    SeqDecorator
  29. def splitBy[K](f: (A) => K): Iterator[immutable.Seq[A]]

    Constructs an iterator in which each element is a the sequence of accumulated elements from the source iterator that have the same key, where the key is calculated by f.

    Constructs an iterator in which each element is a the sequence of accumulated elements from the source iterator that have the same key, where the key is calculated by f.

    Iterator(1,2,2,3,3,3,2,2).splitBy(identity) === Iterator(Seq(1), Seq(2,2), Seq(3,3,3), Seq(2,2))
    Iterator((1,1), (1,2), (2, 3)).splitBy(_._1) === Iterator(Seq((1,1), (1,2)), Seq((2,3)))

    The === operator in this pseudo code stands for 'is equivalent to'; both sides of the === give the same result.

    K

    the type of the computed key

    f

    the function to compute a key for an element

    returns

    an iterator of sequences of the consecutive elements with the same key in the original iterator

    Note

    Reuse: After calling this method, one should discard the iterator it was called on. Using it is undefined and subject to change.

  30. def takeUntilException(exceptionCaught: (Throwable) => Unit): Iterator[A]

    Gives elements from the source iterator until the source iterator ends or throws a NonFatal exception.

    Gives elements from the source iterator until the source iterator ends or throws a NonFatal exception.

    exceptionCaught

    a callback invoked from hasNext when the source iterator throws a NonFatal exception

    returns

    an iterator that takes items until the wrapped iterator ends or throws a NonFatal exception

    Note

    Reuse: After calling this method, one should discard the iterator it was called on, and use only the iterator that was returned. Using the old iterator is undefined, subject to change, and may result in changes to the new iterator as well.

    See also

    scala.util.control.NonFatal

  31. def takeUntilException: Iterator[A]

    Gives elements from the source iterator until the source iterator ends or throws a NonFatal exception.

    Gives elements from the source iterator until the source iterator ends or throws a NonFatal exception.

    returns

    an iterator that takes items until the source iterator ends or throws a NonFatal exception

    Note

    Reuse: After calling this method, one should discard the iterator it was called on, and use only the iterator that was returned. Using the old iterator is undefined, subject to change, and may result in changes to the new iterator as well.

    See also

    scala.util.control.NonFatal

  32. val this: Iterator[A]
  33. def toString(): String
    Definition Classes
    Any
  34. def zipByKey[W, That]: ([W, That](other: scala.collection.Map[_1.map.K,W])(implicit bf: scala.collection.BuildFrom[scala.collection.decorators.IteratorDecorator[A],(_1.map.K, (_1.map.V, W)),That])That) forSome {val _1: MapDecorator[IteratorDecorator[A], map.type]}

    Combines the entries of this Map with the entries of that Map that have the same key, tupling their values.

    Combines the entries of this Map with the entries of that Map that have the same key, tupling their values. xs.zipByKey(ys) is a shorthand for xs.zipByKeyWith(ys)((_, _)).

    W

    Type of values of the other Map (e.g. Int, String)

    That

    Type of the result (e.g. Map[Int, (String, Boolean)], TreeMap[String, (Int, Int)])

    returns

    A Map that associates all the keys k contained by both this and that to pairs (v, w) where v is the value associated by this to k and w the value associated by that to k

    Implicit
    This member is added by an implicit conversion from IteratorDecorator[A] toMapDecorator[IteratorDecorator[A], map.type] performed by method MapDecorator in scala.collection.decorators.This conversion will take place only if an implicit value of type IsMap[IteratorDecorator[A]] is in scope.
    Definition Classes
    MapDecorator
  35. def zipByKeyWith[W, X, That]: ([W, X, That](other: scala.collection.Map[_1.map.K,W])(f: (_1.map.V, W) => X)(implicit bf: scala.collection.BuildFrom[scala.collection.decorators.IteratorDecorator[A],(_1.map.K, X),That])That) forSome {val _1: MapDecorator[IteratorDecorator[A], map.type]}

    Combines entries of this Map with entries of that Map that have the same key, using the combination function f

    Combines entries of this Map with entries of that Map that have the same key, using the combination function f

    W

    Type of values of the other Map (e.g. Int, String)

    X

    Type of values of the resulting Map

    That

    Type of the resulting Map

    returns

    A Map that associates all the keys k contained by both this and that to the result of the application of f to the values v and w respectively associated by this and that to k

    Implicit
    This member is added by an implicit conversion from IteratorDecorator[A] toMapDecorator[IteratorDecorator[A], map.type] performed by method MapDecorator in scala.collection.decorators.This conversion will take place only if an implicit value of type IsMap[IteratorDecorator[A]] is in scope.
    Definition Classes
    MapDecorator

Shadowed Implicit Value Members

  1. def foldSomeLeft[B]: ([B](z: B)(op: (B, _1.it.A) => Option[B])B) forSome {val _1: IterableDecorator[IteratorDecorator[A], it.type]}

    Left to right fold that stops if the combination function op returns None

    Left to right fold that stops if the combination function op returns None

    B

    the result type of the binary operator

    returns

    the result of inserting op between consecutive elements of the collection, going left to right with the start value z on the left, and stopping when all the elements have been traversed or earlier if the operator returns None

    Implicit
    This member is added by an implicit conversion from IteratorDecorator[A] toIterableDecorator[IteratorDecorator[A], it.type] performed by method IterableDecorator in scala.collection.decorators.This conversion will take place only if an implicit value of type IsIterable[IteratorDecorator[A]] is in scope.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (iteratorDecorator: IterableDecorator[IteratorDecorator[A], it.type]).foldSomeLeft
    Definition Classes
    IterableDecorator
  2. def intersperse[B >: SeqDecorator.S.A, That]: ([B, That](start: B, sep: B, end: B)(implicit bf: scala.collection.BuildFrom[scala.collection.decorators.IteratorDecorator[A],B,That])That) forSome {val _1: SeqDecorator[IteratorDecorator[A], seq.type]}

    Adds the element sep between each element of the sequence, prepending start and appending end.

    Adds the element sep between each element of the sequence, prepending start and appending end. If the sequence has less than two elements, returns start +: this :+ end.

    B

    the element type of the returned collection

    returns

    a new collection consisting of all elements of this collection interspersed with the element sep, beginning with start and ending with end

    Implicit
    This member is added by an implicit conversion from IteratorDecorator[A] toSeqDecorator[IteratorDecorator[A], seq.type] performed by method SeqDecorator in scala.collection.decorators.This conversion will take place only if an implicit value of type IsSeq[IteratorDecorator[A]] is in scope.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (iteratorDecorator: SeqDecorator[IteratorDecorator[A], seq.type]).intersperse
    Definition Classes
    SeqDecorator
    Example:
    1. List(1, 2, 3, 4).intersperse(-1, 0, 5) => List(-1, 1, 0, 2, 0, 3, 0, 4, 5)
  3. def intersperse[B >: SeqDecorator.S.A, That]: ([B, That](sep: B)(implicit bf: scala.collection.BuildFrom[scala.collection.decorators.IteratorDecorator[A],B,That])That) forSome {val _1: SeqDecorator[IteratorDecorator[A], seq.type]}

    Adds the element sep between each element of the sequence.

    Adds the element sep between each element of the sequence. If the sequence has less than two elements, the collection is unchanged.

    B

    the element type of the returned collection

    returns

    a new collection consisting of all elements of this collection interspersed with the element sep

    Implicit
    This member is added by an implicit conversion from IteratorDecorator[A] toSeqDecorator[IteratorDecorator[A], seq.type] performed by method SeqDecorator in scala.collection.decorators.This conversion will take place only if an implicit value of type IsSeq[IteratorDecorator[A]] is in scope.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (iteratorDecorator: SeqDecorator[IteratorDecorator[A], seq.type]).intersperse
    Definition Classes
    SeqDecorator
    Example:
    1. List(1, 2, 3, 4).intersperse(0) = List(1, 0, 2, 0, 3, 0, 4)
  4. def lazyFoldLeft[B]: ([B](z: B)(op: (B, => _1.it.A) => B)B) forSome {val _1: IterableDecorator[IteratorDecorator[A], it.type]}

    Lazy left to right fold.

    Lazy left to right fold. Like foldLeft but the combination function op is non-strict in its second parameter. If op(b, a) chooses not to evaluate a and returns b, this terminates the traversal early.

    B

    the result type of the binary operator

    returns

    the result of inserting op between consecutive elements of the collection, going left to right with the start value z on the left, and stopping when all the elements have been traversed or earlier if op(b, a) choose not to evaluate a and returns b

    Implicit
    This member is added by an implicit conversion from IteratorDecorator[A] toIterableDecorator[IteratorDecorator[A], it.type] performed by method IterableDecorator in scala.collection.decorators.This conversion will take place only if an implicit value of type IsIterable[IteratorDecorator[A]] is in scope.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (iteratorDecorator: IterableDecorator[IteratorDecorator[A], it.type]).lazyFoldLeft
    Definition Classes
    IterableDecorator
  5. def lazyFoldRight[B]: ([B](z: B)(op: _1.it.A => scala.util.Either[B,B => B])B) forSome {val _1: IterableDecorator[IteratorDecorator[A], it.type]}

    Right to left fold that can be interrupted before traversing the whole collection.

    Right to left fold that can be interrupted before traversing the whole collection.

    B

    the result type

    returns

    the result of applying the operator between consecutive elements of the collection, going right to left, with the start value z on the right. The result of the application of the function op to each element drives the process: if it returns Left(result), then result is returned without iterating further; if it returns Right(f), the function f is applied to the previous result to produce the new result and the fold continues.

    Implicit
    This member is added by an implicit conversion from IteratorDecorator[A] toIterableDecorator[IteratorDecorator[A], it.type] performed by method IterableDecorator in scala.collection.decorators.This conversion will take place only if an implicit value of type IsIterable[IteratorDecorator[A]] is in scope.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (iteratorDecorator: IterableDecorator[IteratorDecorator[A], it.type]).lazyFoldRight
    Definition Classes
    IterableDecorator
  6. def splitBy[K, CC1, CC2]: ([K, CC1, CC2](f: _1.it.A => K)(implicit bf: scala.collection.BuildFrom[scala.collection.decorators.IteratorDecorator[A],_1.it.A,CC1], implicit bff: scala.collection.BuildFrom[scala.collection.decorators.IteratorDecorator[A],CC1,CC2])CC2) forSome {val _1: IterableDecorator[IteratorDecorator[A], it.type]}

    Constructs a collection where consecutive elements are accumulated as long as the output of f for each element doesn't change.

    Constructs a collection where consecutive elements are accumulated as long as the output of f for each element doesn't change.

    Vector(1,2,2,3,3,3,2,2)
    .splitBy(identity)
    
    produces
    Vector(Vector(1),
    Vector(2,2),
    Vector(3,3,3),
    Vector(2,2))
    

    K

    the type of the computed key

    returns

    a collection of collections of the consecutive elements with the same key in the original collection

    Implicit
    This member is added by an implicit conversion from IteratorDecorator[A] toIterableDecorator[IteratorDecorator[A], it.type] performed by method IterableDecorator in scala.collection.decorators.This conversion will take place only if an implicit value of type IsIterable[IteratorDecorator[A]] is in scope.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (iteratorDecorator: IterableDecorator[IteratorDecorator[A], it.type]).splitBy
    Definition Classes
    IterableDecorator

Deprecated Value Members

  1. def [B](y: B): (IteratorDecorator[A], B)
    Implicit
    This member is added by an implicit conversion from IteratorDecorator[A] toArrowAssoc[IteratorDecorator[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from AnyVal

Inherited from Any

Inherited by implicit conversion MapDecorator fromIteratorDecorator[A] to MapDecorator[IteratorDecorator[A], map.type]

Inherited by implicit conversion SeqDecorator fromIteratorDecorator[A] to SeqDecorator[IteratorDecorator[A], seq.type]

Inherited by implicit conversion IterableDecorator fromIteratorDecorator[A] to IterableDecorator[IteratorDecorator[A], it.type]

Inherited by implicit conversion any2stringadd fromIteratorDecorator[A] to any2stringadd[IteratorDecorator[A]]

Inherited by implicit conversion StringFormat fromIteratorDecorator[A] to StringFormat[IteratorDecorator[A]]

Inherited by implicit conversion Ensuring fromIteratorDecorator[A] to Ensuring[IteratorDecorator[A]]

Inherited by implicit conversion ArrowAssoc fromIteratorDecorator[A] to ArrowAssoc[IteratorDecorator[A]]

Ungrouped