Packages

c

ostrat.pExt

SeqExtensions

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.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SeqExtensions
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SeqExtensions(thisSeq: Seq[A])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addOpt(optEl: Option[A]): Seq[A]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. 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

  10. def fLast[B](ifEmpty: => B, fNonEmpty: (A) => B): B
  11. def filterMap[B](fFilter: (A) => Boolean, fMap: (A) => B): Seq[B]
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  13. def foldMax[B](f: (A) => B)(implicit cmp: Ordering[B]): B
  14. def foldMin[B](f: (A) => B)(implicit cmp: Ordering[B]): B
  15. def foldMinMax[B](f: (A) => B)(implicit cmp: Ordering[B]): (B, B)
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. 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

  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. def lenStr: String
  21. 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

  22. def mapFirstGood[B](f: (A) => EMon[B], errs: => Bad[B]): EMon[B]
  23. def mapMinMaxStr[B](f: (A) => B)(implicit cmp: Ordering[B]): String
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. def next(currEl: A): A
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. 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.

  29. def prev(currEl: A): A
  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. def valueProducts[B <: ArrProdHomo[A]](implicit factory: (Int) => B): B
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped