final class DrxIterator[A] extends AnyVal
- Source
- collection.scala
- Alphabetic
- By Inheritance
- DrxIterator
- AnyVal
- Any
- by richDrxAny
- by DrxBoundOps
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new DrxIterator(xs: Iterator[A])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from DrxIterator[A] toany2stringadd[DrxIterator[A]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (DrxIterator[A], B)
- Implicit
- This member is added by an implicit conversion from DrxIterator[A] toArrowAssoc[DrxIterator[A]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- def applyIf(t: Boolean, f: (DrxIterator[A]) => DrxIterator[A]): DrxIterator[A]
- Implicit
- This member is added by an implicit conversion from DrxIterator[A] toDrxAny[DrxIterator[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def applyIf(t: (DrxIterator[A]) => Boolean)(f: (DrxIterator[A]) => DrxIterator[A]): DrxIterator[A]
better chaining for types
better chaining for types
- Implicit
- This member is added by an implicit conversion from DrxIterator[A] toDrxAny[DrxIterator[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def countBy[B](f: (A) => B): Map[B, Int]
SI-7365 a more efficient binning without using groupBy (the collection is lost here unless identity is used)
- def countWhile(f: (A) => Boolean): Int
- def elementOf(xs: Set[DrxIterator[A]]): Boolean
- Implicit
- This member is added by an implicit conversion from DrxIterator[A] toDrxAny[DrxIterator[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def ensuring(cond: (DrxIterator[A]) => Boolean, msg: => Any): DrxIterator[A]
- Implicit
- This member is added by an implicit conversion from DrxIterator[A] toEnsuring[DrxIterator[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (DrxIterator[A]) => Boolean): DrxIterator[A]
- Implicit
- This member is added by an implicit conversion from DrxIterator[A] toEnsuring[DrxIterator[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): DrxIterator[A]
- Implicit
- This member is added by an implicit conversion from DrxIterator[A] toEnsuring[DrxIterator[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): DrxIterator[A]
- Implicit
- This member is added by an implicit conversion from DrxIterator[A] toEnsuring[DrxIterator[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def evens: Iterator[A]
- def fitString(sizes: Int*): String
Like mkString but fits(pads) rows to a size
- def fitString: String
Like mkString but fits(pads) rows to a size
- def foreachBy(dt: Time)(f: (A) => Unit)(implicit sc: drx.ScheduledContext, ec: drx.ExecutionContext): drx.Future[Unit]
async apply a function to a collection with a spaced time delay
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from DrxIterator[A] toStringFormat[DrxIterator[A]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def getNonEmpty: Option[Iterator[A]]
this is useful for making sure things like maxBy won't fail
- def groupRuns: Vector[Vector[A]]
group matches similar runs see also groupRunsBy to group without an intermediate map
- def groupRunsBy[B](f: (A) => B): Vector[Vector[A]]
group runs that are equivalent after a transformation
- def groupWhile(f: (A, A) => Boolean): Vector[Vector[A]]
most generic base function to create group by like run length encodings, see also the simpler groupRuns and groupRunsBy
- def integrate(f: (A) => Double)(implicit num: Numeric[A]): Double
trapezoidal integration
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mapFrom[B](f: (A) => B): Map[B, A]
like group by but clobbers unique id's
- def mapIf[B](pf: PartialFunction[A, B]): Map[A, B]
collect like operations
- def mapLinear[B](f: (A) => drx.Future[B])(implicit ec: drx.ExecutionContext): drx.Future[List[B]]
- def mapWith[B](f: (A) => B): Map[A, B]
like zipWith but clobers uniq elements
- def mkCommas: String
- def mkLines: String
- def mkSpaces: String
- def noneIf(f: (DrxIterator[A]) => Boolean): Option[DrxIterator[A]]
- Implicit
- This member is added by an implicit conversion from DrxIterator[A] toDrxAny[DrxIterator[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def odds: Iterator[A]
- def optionIf(f: (DrxIterator[A]) => Boolean): Option[DrxIterator[A]]
optionally wrap an object
optionally wrap an object
- Implicit
- This member is added by an implicit conversion from DrxIterator[A] toDrxAny[DrxIterator[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def preApply[B](f: (DrxIterator[A]) => B): B
a preApply f => f(a)
a preApply f => f(a)
- Implicit
- This member is added by an implicit conversion from DrxIterator[A] toDrxAny[DrxIterator[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def ratioWhere(p: (A) => Boolean): Ratio
- def sampleByRatio(reductionRatio: Double)(implicit rand: Rand): Iterator[A]
- def sideEffect(f: (DrxIterator[A]) => Unit): DrxIterator[A]
side effect filter
side effect filter
- Implicit
- This member is added by an implicit conversion from DrxIterator[A] toDrxAny[DrxIterator[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def skip(skipSize: Int, takeSize: Int = 1, offset: Int = 0): Iterator[A]
- def someIf(f: (DrxIterator[A]) => Boolean): Option[DrxIterator[A]]
- Implicit
- This member is added by an implicit conversion from DrxIterator[A] toDrxAny[DrxIterator[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def statBy(f: (A) => Vec): StatVec
- def statBy(f: (A) => Double): Stat
- val thisAny: DrxIterator[A]
- Implicit
- This member is added by an implicit conversion from DrxIterator[A] toDrxAny[DrxIterator[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def till(maxArg: DrxIterator[A]): Bound[DrxIterator[A]]
Bound construction since the Range constructor is deprecated
Bound construction since the Range constructor is deprecated
- Implicit
- This member is added by an implicit conversion from DrxIterator[A] toBoundOps[DrxIterator[A]] performed by method DrxBoundOps in cc.drx.predef.Enrich.This conversion will take place only if an implicit value of type Boundable[DrxIterator[A]] is in scope.
- Definition Classes
- BoundOps
- def toString(): String
- Definition Classes
- Any
- val xs: Iterator[A]
- def zipFrom[B](f: (A) => B): Iterator[(B, A)]
- def zipIf[B](pf: PartialFunction[A, B]): Iterator[(A, B)]
- def zipTo[B, C](ys: Iterator[B])(f: (A, B) => C): Iterator[C]
- def zipWith[B](f: (A) => B): Iterator[(A, B)]
Deprecated Value Members
- def /@[B](f: Applicable[A, B]): Iterator[B]
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) to much magic
- def /@[B](f: (A) => B): Iterator[B]
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) to much magic
- def ?>(f: (DrxIterator[A]) => Boolean): Option[DrxIterator[A]]
alias for option if
alias for option if
- Implicit
- This member is added by an implicit conversion from DrxIterator[A] toDrxAny[DrxIterator[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) to many symbols are hard to undertand
- def mapBy[B](f: (A) => B): Map[B, A]
- Annotations
- @deprecated
- Deprecated
(Since version 0.2.13) use mapFrom(f) since it is beter in line wiht the zipFrom command
- def mkMap[B](f: (A) => B): Map[A, B]
- Annotations
- @deprecated
- Deprecated
(Since version 0.1.8) use mapWith(f) or mapBy(f)
- def sample(reductionRatio: Double)(implicit rand: Rand): Iterator[A]
- Annotations
- @deprecated
- Deprecated
(Since version 0.2.13) use sampleByRatio instead for typesafety between Traverable and IndexedSeq samples
- def |>[B](f: (DrxIterator[A]) => B): B
- Implicit
- This member is added by an implicit conversion from DrxIterator[A] toDrxAny[DrxIterator[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) use
preApply
if you must (symbols are concise without concision)
- def →[B](y: B): (DrxIterator[A], B)
- Implicit
- This member is added by an implicit conversion from DrxIterator[A] toArrowAssoc[DrxIterator[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.