class SeqExtensions[A] extends AnyRef
Extension methods for the Seq[A] class. These are bought into scope by the seqToImplicit method in the package object.
- Alphabetic
- By Inheritance
- SeqExtensions
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SeqExtensions(thisSeq: Seq[A])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addOpt(optEl: Option[A]): Seq[A]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fHead[B](ifEmpty: => B, fNonEmpty: (A) => B): B
This method and "headOnly" method on TraversableImplicit removes the need for headOption in the majority of case.
This method and "headOnly" method on TraversableImplicit removes the need for headOption in the majority of case. Use head Only if you are only interested in the head value
- def fLast[B](ifEmpty: => B, fNonEmpty: (A) => B): B
- def filterMap[B](fFilter: (A) => Boolean, fMap: (A) => B): Seq[B]
- def foldMax[B](f: (A) => B)(implicit cmp: Ordering[B]): B
- def foldMin[B](f: (A) => B)(implicit cmp: Ordering[B]): B
- def foldMinMax[B](f: (A) => B)(implicit cmp: Ordering[B]): (B, B)
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def ifAppend[B >: A](b: Boolean, elems: B*): Seq[B]
This needs to be changed to by name parameters when by name varargs are allowed.
This needs to be changed to by name parameters when by name varargs are allowed. I think this is coming in 12.3
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lenStr: String
- def mapBy2[B](f: (A, A) => B): List[B]
groups the Sequence into pairs and then maps over them.
groups the Sequence into pairs and then maps over them. Throws exception if seq.length.isOdd
- def mapFirstGood[B](f: (A) => EMon[B], errs: => Bad[B]): EMon[B]
- def mapMinMaxStr[B](f: (A) => B)(implicit cmp: Ordering[B]): String
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def next(currEl: A): A
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def pMap[B, C <: ArrProdHomo[B]](f: (A) => B)(implicit factory: (Int) => C): C
product map method maps from a sequence to an Array[Double] based ProductValues class.
- def prev(currEl: A): A
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def valueProducts[B <: ArrProdHomo[A]](implicit factory: (Int) => B): B
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])