Packages

c

ostrat.pExt

IterableExtensions

final class IterableExtensions[A] extends AnyVal

Extension methods for Traversable[A]

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

Instance Constructors

  1. new IterableExtensions(thisIter: Iterable[A])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def eMonMap[B](f: (A) => EMon[B]): EMon[List[B]]

    Folds over this traverable with A => EMon[B] function, accumulating errors

  6. def fLast[B](ifEmpty: => B, fNonEmpty: (A) => B): B
  7. def foldWithPrevious[B](initPrevious: A, initAcc: B)(f: (B, A, A) => B): B
  8. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  9. def headOnly[B](ifEmpty: => B, fNonEmpty: (A) => B): B

    This method and "fHead" removes the need for headOption in the majority of case.

    This method and "fHead" removes the need for headOption in the majority of case. Use fHead when are interested in the tail value

  10. def headOrElse(vEmpty: A): A
  11. def iFlatMap[B](f: (A, Int) => Arr[B], count: Int = 0)(implicit ct: ClassTag[B]): Arr[B]

    flatMaps over a traversable (collection / sequence) with a counter

  12. def iForall(f: (A, Int) => Boolean): Boolean
  13. def iForeach(f: (A, Int) => Unit, initialIndex: Int = 0): Unit

    foreach loop with index.

    foreach loop with index. The startIndex parameter is placed 2nd to allow it to have a default value of zero.

  14. def iMap[B](f: (A, Int) => B, count: Int = 0)(implicit ct: ClassTag[B]): Arr[B]

    Maps over a Traversable (collection / sequence) with a counter.

  15. def ifEmpty[B](vEmpty: => B, vNonEmpty: => B): B
  16. def ifHead(f: (A) => Boolean): Boolean

    Checks condition against head.

    Checks condition against head. Returns false if the collection is empty.

  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def iter2ProdD2[B, C <: ProdDbl2, D <: ArrProdDbl2[C]](secondIter: Iterable[B], f: (A, B) => C)(implicit factory: (Int) => D): D

    This needs to be renamed.

  19. def iterHead[B](ifEmpty: => B, fNonEmpty: (A, Iterable[A]) => B): B
  20. def mapArr[B, BB <: ArrImut[B]](f: (A) => B)(implicit ev: ArrBuild[B, BB]): BB
  21. def pMap[B, M <: ArrProdHomo[B]](f: (A) => B)(implicit factory: (Int) => M): M

    product map method maps from a Traversable to an Array based ProductValues class.

  22. def sumBy(f: (A) => Int): Int
  23. val thisIter: Iterable[A]
  24. def toArr(implicit ct: ClassTag[A]): Arr[A]
  25. def toImut[AA <: ArrImut[A]](implicit bu: ArrBuild[A, AA]): AA
  26. def toPValues[B <: ArrProdHomo[A]](implicit factory: (Int) => B): B

    Copies from a Traversable to an Array based ProductValues class.

  27. def toStrFold2[B](secondAcc: B)(f: (B, A) => (String, B)): String

    Not sure what this does.

  28. def toString(): String
    Definition Classes
    Any
  29. def toStrsCommaFold(fToStr: (A) => String = _.toString): String
  30. def toStrsCommaNoSpaceFold(fToStr: (A) => String = _.toString): String
  31. def toStrsCommaParenth(fToStr: (A) => String = _.toString): String
  32. def toStrsFold(seperator: String = "", f: (A) => String = _.toString): String
  33. def toStrsSemiFold(fToStr: (A) => String = _.toString): String
  34. def toStrsSemiParenth(fToStr: (A) => String = _.toString): String
  35. def typedSpan[B <: A](typeCheckFunction: (A) => Boolean): (List[B], List[A])

    Not sure what this method does

Inherited from AnyVal

Inherited from Any

Ungrouped