Packages

final class Arr[+A] extends AnyVal with ArrBase[A]

The immutable Array based class for reference types. It Inherits the standard foreach, map, flatMap and fold and their variations' methods from ArrayLike.

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

Instance Constructors

  1. new Arr(unsafeArr: Array[A])

Type Members

  1. type ThisT = Arr[A]
    Definition Classes
    ArrArrBaseArrayLike

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. def ++[AA >: A](op: Arr[AA])(implicit ct: ClassTag[AA]): Arr[AA]

    Alias for appendRefs.

    Alias for appendRefs. Functionally appends 2nd Refs collection to dispatching Refs, allows type widening. This operation allows type widening.

    Annotations
    @inline()
  4. def +-[AA >: A](op: AA)(implicit ct: ClassTag[AA]): Arr[AA]

    Alias for concat.

    Alias for concat. Functionally concatenates element to dispatching Refs, allows type widening.

    Annotations
    @inline()
  5. def +:[AA >: A](op: AA)(implicit ct: ClassTag[AA]): Arr[AA]

    Alias for prepend.

    Alias for prepend. Functionally prepends element to array. Allows type widening. There is no precaternateRefs method, as this would serve no purpose. The ::: method on Lists is required for performance reasons.

    Annotations
    @inline()
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  7. def append[AA >: A](op: AA)(implicit ct: ClassTag[AA]): Arr[AA]

    Functionally appends an element to dispatching Refs, allows type widening.

    Functionally appends an element to dispatching Refs, allows type widening. Aliased by +- operator.

  8. def appendOption(optElem: Option[A])(implicit ct: ClassTag[A]): Arr[A]
  9. def appendRefs[AA >: A](op: Arr[AA])(implicit ct: ClassTag[AA]): Arr[AA]

    Functionally concatenates element to dispatching Refs, allows type widening.

    Functionally concatenates element to dispatching Refs, allows type widening. Aliased by -+ operator. The '-' character in the operator name indicates loss of type precision. The ++ appendRefs method is preferred when type widening is not required.

  10. def appendRefsIf(b: Boolean, newElems: => Arr[A])(implicit ct: ClassTag[A]): Arr[A]

    Appends the elements of the operand Refs if the condition is true, else returns the original Refs.

    Appends the elements of the operand Refs if the condition is true, else returns the original Refs. The operand is lazy so will only be evaluated if the condition is true. This is similar to the concatsIf method, but appendsIf does not allow type widening.

  11. def appendsOption(optElem: Option[Arr[A]])(implicit ct: ClassTag[A]): Arr[A]
  12. def apply(index: Int): A
    Definition Classes
    ArrArrayLike
  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. 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
  15. 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
  16. def concatOption[AA >: A](optElem: Option[AA])(implicit ct: ClassTag[AA]): Arr[AA]
  17. def concatRefsIf[AA >: A](b: Boolean, newElems: => Arr[AA])(implicit ct: ClassTag[AA]): Arr[AA]

    Concatenates the elements of the operands Refs if the condition is true, else returns the original Refs.

    Concatenates the elements of the operands Refs if the condition is true, else returns the original Refs. The return type is the super type of the original Refs and the operand Ref. The operand is lazy so will only be evaluated if the condition is true. This is similar to the appendsIf method, but concatsIf allows type widening.

  18. def concatsOption[AA >: A <: AnyRef](optElems: Option[Arr[AA]])(implicit ct: ClassTag[AA]): Arr[AA]
  19. def contains[A1 >: A](elem: A1): Boolean
    Definition Classes
    ArrayLike
  20. def drop(n: Int)(implicit ct: ClassTag[A]): Arr[A]
  21. def drop1(implicit ct: ClassTag[A]): Arr[A]
    Annotations
    @inline()
  22. def eMap[B, BB <: ArrBase[B]](f: (A) => EMon[B])(implicit ev: ArrBuild[B, BB]): EMon[BB]
    Definition Classes
    ArrayLike
  23. def eMapList[B](f: (A) => EMon[B]): EMon[List[B]]
    Definition Classes
    ArrayLike
  24. def elemsStr: String
  25. def empty: Boolean
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  26. 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
  27. def fHeadElse[B](noHead: => B)(ifHead: (A) => B): B
    Definition Classes
    ArrayLike
  28. def fMax[B](f: (A) => B)(implicit cmp: Ordering[B]): B
    Definition Classes
    ArrayLike
  29. def fMin[B](f: (A) => B)(implicit cmp: Ordering[B]): B
    Definition Classes
    ArrayLike
  30. def filter[AA <: ArrBase[A]](f: (A) => Boolean)(implicit ev: ArrBuild[A, AA]): AA
    Definition Classes
    ArrayLike
  31. def filterNot[AA <: ArrBase[A]](f: (A) => Boolean)(implicit ev: ArrBuild[A, AA]): AA
    Definition Classes
    ArrayLike
  32. def filterToList(f: (A) => Boolean): List[A]
    Definition Classes
    ArrayLike
  33. 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
  34. def foldHeadTail[B](initial: B)(fHead: (B, A) => B)(fTail: (B, A) => B): B
    Definition Classes
    ArrayLike
  35. def foldLeft[B](initial: B)(f: (B, A) => B): B
    Definition Classes
    ArrayLike
  36. def foldTailLeft[B](initial: B)(f: (B, A) => B): B
    Definition Classes
    ArrayLike
  37. def forAll(p: (A) => Boolean): Boolean
    Definition Classes
    ArrayLike
  38. 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
  39. def foreachInit[U](f: (A) => U): Unit
    Definition Classes
    ArrayLike
  40. 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
  41. def foreachTail[U](f: (A) => U): Unit
    Definition Classes
    ArrayLike
  42. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  43. def head: A
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  44. def headToStringElse(ifEmptyString: String): String
    Definition Classes
    ArrayLike
  45. 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
  46. 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
  47. def iForAll(p: (A, Int) => Boolean): Boolean
    Definition Classes
    ArrayLike
  48. 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
  49. def iForeachReverse[U](f: (A, Int) => U): Unit
    Definition Classes
    ArrayLike
  50. 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
  51. def ifEmpty[B](vEmpty: => B, vNonEmpty: => B): B
    Definition Classes
    ArrayLike
  52. def indexOf(elem: A): Int
    Definition Classes
    ArrayLike
  53. 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
  54. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  55. 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
  56. def last: A
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  57. 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
  58. 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
    ArrArrayLikeBase
  59. 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
  60. 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
  61. 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
  62. def mapList[B <: AnyRef](f: (A) => B): List[B]

    maps ValueProduct collection to List

    maps ValueProduct collection to List

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

    Not sure about this method.

    Not sure about this method.

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

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

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

    Definition Classes
    ArrBase
  68. def nonEmpty: Boolean
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  69. def offset(value: Int): ArrOff[A]
  70. def offset0: ArrOff[A]
  71. def prepend[AA >: A](op: AA)(implicit ct: ClassTag[AA]): Arr[AA]

    Functionally prepends element to array.

    Functionally prepends element to array. Aliased by the +: operator.

  72. def removeFirst(f: (A) => Boolean): ThisT
    Definition Classes
    ArrBase
  73. def replace(oldValue: A, newValue: A): ThisT

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

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

    Definition Classes
    ArrBase
  74. def replaceWhere(pred: (A) => Boolean, newValue: A): ThisT

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

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

    Definition Classes
    ArrBase
  75. def returnThis: ThisT
    Definition Classes
    ArrayLike
  76. def setAll(value: A): Unit
  77. def sumBy(f: (A) => Int): Int
    Definition Classes
    ArrayLike
  78. def toList: List[A]
    Definition Classes
    ArrayLike
  79. def toString(): String
    Definition Classes
    Arr → Any
  80. def toStrsCommaFold(fToStr: (A) => String = _.toString): String
    Definition Classes
    ArrayLike
  81. def toStrsCommaNoSpaceFold(fToStr: (A) => String = _.toString): String
    Definition Classes
    ArrayLike
  82. def toStrsCommaParenth(fToStr: (A) => String = _.toString): String
    Definition Classes
    ArrayLike
  83. def toStrsFold(seperator: String = "", f: (A) => String = _.toString): String
    Definition Classes
    ArrayLike
  84. def toStrsSemiFold(fToStr: (A) => String = _.toString): String
    Definition Classes
    ArrayLike
  85. def toStrsSemiParenth(fToStr: (A) => String = _.toString): String
    Definition Classes
    ArrayLike
  86. val unsafeArr: Array[A]
  87. def unsafeArrayCopy(operand: Array[A], offset: Int, copyLength: Int): Unit
    Definition Classes
    ArrArrBase
  88. def unsafeNew(length: Int): Arr[A]
    Definition Classes
    ArrArrBase
  89. def unsafeSetElem(i: Int, value: A): Unit
    Definition Classes
    ArrArrBase
  90. def unsafeSetElemSeq(index: Int, elems: Iterable[A]): Unit
    Definition Classes
    ArrBase
  91. def unsafeSetElems(index: Int, elems: A*): Unit
    Definition Classes
    ArrBase
  92. def unsafeSetHead(value: A): Unit
    Definition Classes
    ArrBase
  93. def unsafeSetLast(value: A): Unit
    Definition Classes
    ArrBase

Inherited from ArrBase[A]

Inherited from ArrayLike[A]

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

Inherited from AnyVal

Inherited from Any

Ungrouped