Packages

t

ostrat

ArrBase

trait ArrBase[+A] extends ArrayLike[A]

Base trait for specialised immutable Arrays. The final classes extend AnyVal using standard Java /Javascript Arrays for their underlying storage. A lot of the time this is a compile time wrapper with no boxing run cost.

Linear Supertypes
ArrayLike[A], ArrayLikeBase[A @scala.annotation.unchecked.uncheckedVariance], Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ArrBase
  2. ArrayLike
  3. ArrayLikeBase
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. abstract type ThisT <: ArrBase[A]
    Definition Classes
    ArrBaseArrayLike

Abstract Value Members

  1. abstract def apply(index: Int): A
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  2. abstract def getClass(): Class[_ <: AnyRef]
    Definition Classes
    Any
  3. abstract def length: Int

    The number of elements in the collection.

    The number of elements in the collection. These collections use underlying mutable Arrays and ArrayBuffers. The length of the underlying Array maybe longer by a multiple of this number.

    Definition Classes
    ArrayLikeBase
  4. abstract def unsafeNew(length: Int): ThisT
  5. abstract def unsafeSetElem(i: Int, value: A): Unit

Concrete 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 collect[B, BB <: ArrBase[B]](pf: PartialFunction[A, B])(implicit ev: ArrBuild[B, BB]): BB

    Collects values of B by applying partial function to only those elements of A, for which the PartialFunction is defined.

    Collects values of B by applying partial function to only those elements of A, for which the PartialFunction is defined.

    Definition Classes
    ArrayLike
  6. def collectList[B](pf: PartialFunction[A, B]): List[B]

    Collects a List values of B by applying partial function to only those elements of A, for which the PartialFunction is defined.

    Collects a List values of B by applying partial function to only those elements of A, for which the PartialFunction is defined.

    Definition Classes
    ArrayLike
  7. def contains[A1 >: A](elem: A1): Boolean
    Definition Classes
    ArrayLike
  8. def eMap[B, BB <: ArrBase[B]](f: (A) => EMon[B])(implicit ev: ArrBuild[B, BB]): EMon[BB]
    Definition Classes
    ArrayLike
  9. def eMapList[B](f: (A) => EMon[B]): EMon[List[B]]
    Definition Classes
    ArrayLike
  10. def empty: Boolean
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  11. def equals(arg0: Any): Boolean
    Definition Classes
    Any
  12. def existsCount(f: (A) => Boolean): Int

    Counts the number of elements that fulfil the condition A => Boolean

    Counts the number of elements that fulfil the condition A => Boolean

    Definition Classes
    ArrayLike
  13. def fHeadElse[B](noHead: => B)(ifHead: (A) => B): B
    Definition Classes
    ArrayLike
  14. def fMax[B](f: (A) => B)(implicit cmp: Ordering[B]): B
    Definition Classes
    ArrayLike
  15. def fMin[B](f: (A) => B)(implicit cmp: Ordering[B]): B
    Definition Classes
    ArrayLike
  16. def filter[AA <: ArrBase[A]](f: (A) => Boolean)(implicit ev: ArrBuild[A, AA]): AA
    Definition Classes
    ArrayLike
  17. def filterNot[AA <: ArrBase[A]](f: (A) => Boolean)(implicit ev: ArrBuild[A, AA]): AA
    Definition Classes
    ArrayLike
  18. def filterToList(f: (A) => Boolean): List[A]
    Definition Classes
    ArrayLike
  19. def find(f: (A) => Boolean): Option[A]
  20. def flatMap[BB <: ArrBase[_]](f: (A) => BB)(implicit ev: ArrFlatBuild[BB]): BB

    Specialised flatMap to an immutable Arr.

    Specialised flatMap to an immutable Arr.

    Definition Classes
    ArrayLike
  21. def foldHeadTail[B](initial: B)(fHead: (B, A) => B)(fTail: (B, A) => B): B
    Definition Classes
    ArrayLike
  22. def foldLeft[B](initial: B)(f: (B, A) => B): B
    Definition Classes
    ArrayLike
  23. def foldTailLeft[B](initial: B)(f: (B, A) => B): B
    Definition Classes
    ArrayLike
  24. def forAll(p: (A) => Boolean): Boolean
    Definition Classes
    ArrayLike
  25. def foreach[U](f: (A) => U): Unit

    Performs the effectful function on each member of the collection.

    Performs the effectful function on each member of the collection.

    Definition Classes
    ArrayLikeArrayLikeBase
  26. def foreachInit[U](f: (A) => U): Unit
    Definition Classes
    ArrayLike
  27. def foreachReverse[U](f: (A) => U): Unit

    Consider changing this name, as might not be appropriate to all sub classes.

    Consider changing this name, as might not be appropriate to all sub classes.

    Definition Classes
    ArrayLike
  28. def foreachTail[U](f: (A) => U): Unit
    Definition Classes
    ArrayLike
  29. def hashCode(): Int
    Definition Classes
    Any
  30. def head: A
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  31. def headToStringElse(ifEmptyString: String): String
    Definition Classes
    ArrayLike
  32. def iFlatMap[BB <: ArrBase[_]](iInit: Int = 0)(f: (A, Int) => BB)(implicit build: ArrFlatBuild[BB]): BB

    Specialised flatMap with index to an immutable Arr.

    Specialised flatMap with index to an immutable Arr.

    Definition Classes
    ArrayLike
  33. def iFlatMap[BB <: ArrBase[_]](f: (A, Int) => BB)(implicit build: ArrFlatBuild[BB]): BB

    Specialised flatMap with index to an immutable Arr.

    Specialised flatMap with index to an immutable Arr.

    Definition Classes
    ArrayLike
  34. def iForAll(p: (A, Int) => Boolean): Boolean
    Definition Classes
    ArrayLike
  35. def iForeach[U](f: (A, Int) => U, startIndex: Int = 0): Unit

    foreach with index.

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

    Definition Classes
    ArrayLike
  36. def iForeachReverse[U](f: (A, Int) => U): Unit
    Definition Classes
    ArrayLike
  37. def iMap[B, BB <: ArrBase[B]](f: (A, Int) => B)(implicit ev: ArrBuild[B, BB]): BB

    Specialised map with index to an immutable ArrBase of B.

    Specialised map with index to an immutable ArrBase of B. This method should be overridden in sub classes.

    Definition Classes
    ArrayLike
  38. def ifEmpty[B](vEmpty: => B, vNonEmpty: => B): B
    Definition Classes
    ArrayLike
  39. def indexOf(elem: A): Int
    Definition Classes
    ArrayLike
  40. def indexWhere(f: (A) => Boolean): Int

    Return the index of the first element where predicate is true, or -1 if predicate not true forall.

    Return the index of the first element where predicate is true, or -1 if predicate not true forall.

    Definition Classes
    ArrayLike
  41. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  42. def iterFlatMap[B, BB <: ArrBase[B]](f: (A) => Iterable[B])(implicit ev: ArrBuild[B, BB]): BB

    FlatMaps over a function from A to any Iterable.

    FlatMaps over a function from A to any Iterable.

    Definition Classes
    ArrayLike
  43. def last: A
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  44. def lenStr: String

    Just a handy short cut to give the length of this collection as a string.

    Just a handy short cut to give the length of this collection as a string.

    Definition Classes
    ArrayLikeBase
  45. def map[B, BB <: ArrBase[B]](f: (A) => B)(implicit ev: ArrBuild[B, BB]): BB

    Specialised map to an immutable ArrBase of B.

    Specialised map to an immutable ArrBase of B.

    Definition Classes
    ArrayLike
  46. def map2To1[B, BB <: ArrBase[B]](f: (A, A) => B)(implicit ev: ArrBuild[B, BB]): BB

    map 2 elements of A to 1 element of B.

    map 2 elements of A to 1 element of B. Ignores the last element on a collection of odd numbered length.

    Definition Classes
    ArrayLike
  47. def mapCollectGoods[B, BB <: ArrBase[B]](f: (A) => EMon[B])(implicit ev: ArrBuild[B, BB]): BB

    maps from A to EMon[B], collects the good values.

    maps from A to EMon[B], collects the good values.

    Definition Classes
    ArrayLike
  48. def mapList[B <: AnyRef](f: (A) => B): List[B]

    maps ValueProduct collection to List

    maps ValueProduct collection to List

    Definition Classes
    ArrayLike
  49. def mapWithAcc[B, BB <: ArrBase[B], C](initC: C)(f: (A, C) => (B, C))(implicit ev: ArrBuild[B, BB]): BB
    Definition Classes
    ArrayLike
  50. def max[B >: A](implicit ord: Ordering[B]): A
    Definition Classes
    ArrayLike
  51. def min[B >: A](implicit ord: Ordering[B]): A
    Definition Classes
    ArrayLike
  52. def mkString(seperator: String): String

    Not sure about this method.

    Not sure about this method.

    Definition Classes
    ArrayLike
  53. def modifyWhere(pred: (A) => Boolean, fNewValue: (A) => A): ThisT

    Replaces all instances of the old value that fulfill predicate with the new value.

  54. def nonEmpty: Boolean
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  55. def removeFirst(f: (A) => Boolean): ThisT
  56. def replace(oldValue: A, newValue: A): ThisT

    Replaces all instances of the old value with the new value.

  57. def replaceWhere(pred: (A) => Boolean, newValue: A): ThisT

    Replaces all instances of the old value that fulfill predicate with the new value.

  58. def returnThis: ThisT
    Definition Classes
    ArrayLike
  59. def sumBy(f: (A) => Int): Int
    Definition Classes
    ArrayLike
  60. def toList: List[A]
    Definition Classes
    ArrayLike
  61. def toString(): String
    Definition Classes
    Any
  62. def toStrsCommaFold(fToStr: (A) => String): String
    Definition Classes
    ArrayLike
  63. def toStrsCommaNoSpaceFold(fToStr: (A) => String): String
    Definition Classes
    ArrayLike
  64. def toStrsCommaParenth(fToStr: (A) => String): String
    Definition Classes
    ArrayLike
  65. def toStrsFold(seperator: String, f: (A) => String): String
    Definition Classes
    ArrayLike
  66. def toStrsSemiFold(fToStr: (A) => String): String
    Definition Classes
    ArrayLike
  67. def toStrsSemiParenth(fToStr: (A) => String): String
    Definition Classes
    ArrayLike
  68. def unsafeArrayCopy(operand: Array[A], offset: Int, copyLength: Int): Unit
  69. def unsafeSetElemSeq(index: Int, elems: Iterable[A]): Unit
  70. def unsafeSetElems(index: Int, elems: A*): Unit
  71. def unsafeSetHead(value: A): Unit
  72. def unsafeSetLast(value: A): Unit

Inherited from ArrayLike[A]

Inherited from ArrayLikeBase[A @scala.annotation.unchecked.uncheckedVariance]

Inherited from Any

Ungrouped