Packages

t

ostrat

ArrImut

trait ArrImut[+A] extends ArrayLike[A]

Immutable Array. 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. Name will be shortened to Arr once the laias for ArraySeq has been removed.

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

Type Members

  1. abstract type ThisT <: ArrImut[A]
    Definition Classes
    ArrImutArrayLike

Abstract Value Members

  1. abstract def apply(index: Int): A
    Definition Classes
    ArrayLike
  2. abstract def buildThis(length: Int): ThisT
  3. abstract def getClass(): Class[_ <: AnyRef]
    Definition Classes
    Any
  4. abstract def length: Int
    Definition Classes
    ArrayLike
  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 contains[A1 >: A](elem: A1): Boolean
    Definition Classes
    ArrayLike
  6. def eMap[B, BB <: ArrImut[B]](f: (A) => EMon[B])(implicit ev: ArrBuild[B, BB]): EMon[BB]
    Definition Classes
    ArrayLike
  7. def empty: Boolean
    Definition Classes
    ArrayLike
  8. def equals(arg0: Any): Boolean
    Definition Classes
    Any
  9. 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
  10. def foldHeadTail[B](initial: B)(fHead: (B, A) => B)(fTail: (B, A) => B): B
    Definition Classes
    ArrayLike
  11. def foldLeft[B](initial: B)(f: (B, A) => B): B
    Definition Classes
    ArrayLike
  12. def foldTailLeft[B](initial: B)(f: (B, A) => B): B
    Definition Classes
    ArrayLike
  13. def foreach[U](f: (A) => U): Unit
    Definition Classes
    ArrayLike
  14. def foreachInit[U](f: (A) => U): Unit
    Definition Classes
    ArrayLike
  15. 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
  16. def foreachTail[U](f: (A) => U): Unit
    Definition Classes
    ArrayLike
  17. def hashCode(): Int
    Definition Classes
    Any
  18. def head: A
    Definition Classes
    ArrayLike
  19. 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
  20. def iForeachReverse[U](f: (A, Int) => U): Unit
    Definition Classes
    ArrayLike
  21. def ifEmpty[B](vEmpty: => B, vNonEmpty: => B): B
    Definition Classes
    ArrayLike
  22. def indexOf(elem: A): Int
    Definition Classes
    ArrayLike
  23. def indexWhere(f: (A) => Boolean): Int

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

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

    Definition Classes
    ArrayLike
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def iterFlatMap[B, BB <: ArrImut[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
  26. def last: A
    Definition Classes
    ArrayLike
  27. def lenStr: String
    Definition Classes
    ArrayLike
  28. def map[B, BB <: ArrImut[B]](f: (A) => B)(implicit ev: ArrBuild[B, BB]): BB
    Definition Classes
    ArrayLike
  29. def map2To1[B, BB <: ArrImut[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
  30. def mapList[B <: AnyRef](f: (A) => B): List[B]

    maps ValueProduct collection to List

    maps ValueProduct collection to List

    Definition Classes
    ArrayLike
  31. def mkString(seperator: String): String

    Not sure about this method.

    Not sure about this method.

    Definition Classes
    ArrayLike
  32. def nonEmpty: Boolean
    Definition Classes
    ArrayLike
  33. def offsetter: ArrOff[A]
  34. def removeFirst(f: (A) => Boolean): ThisT
  35. def replace(oldValue: A, newValue: A): ThisT

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

  36. def returnThis: ThisT
    Definition Classes
    ArrayLike
  37. def toList: List[A]
    Definition Classes
    ArrayLike
  38. def toString(): String
    Definition Classes
    Any
  39. def toStrsFold(seperator: String = "", f: (A) => String = _.toString): String
    Definition Classes
    ArrayLike
  40. def unsafeArrayCopy(operand: Array[A], offset: Int, copyLength: Int): Unit
  41. def unsafeSetElemSeq(index: Int, elems: Iterable[A]): Unit
  42. def unsafeSetElems(index: Int, elems: A*): Unit
  43. def unsafeSetHead(value: A): Unit
  44. def unsafeSetLast(value: A): Unit

Deprecated Value Members

  1. def toArraySeq(implicit ct: ClassTag[A]): ArraySeq[A]

    transitional method to be removed.

    transitional method to be removed.

    Definition Classes
    ArrayLike
    Annotations
    @deprecated
    Deprecated

Inherited from ArrayLike[A]

Inherited from Any

Ungrouped