Packages

final class Ints extends AnyVal with ArrImut[Int]

Immutable Array based class for Ints. There are no concat methods, as Ints has no type parameter and can not be widened.

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

Instance Constructors

  1. new Ints(arrayUnsafe: Array[Int])

Type Members

  1. type ThisT = Ints

    The final type of this object.

    The final type of this object.

    Definition Classes
    IntsArrImutArrayLike

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. def ++(op: Ints): Ints

    Alias for appendInts.

    Alias for appendInts. Functionally appends the operand Ints.

    Annotations
    @inline()
  4. def +:(op: Int): Ints

    Alias for prepend.

    Alias for prepend. Functionally appends the operand Int.

    Annotations
    @inline()
  5. def :+(op: Int): Ints

    Alias for append.

    Alias for append. Functionally appends the operand Int.

    Annotations
    @inline()
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  7. def append(op: Int): Ints

    Functionally appends the operand Int.

    Functionally appends the operand Int. This method by the :+ operator, rather than the +- operator alias used for append on Refs to avoid confusion with arithmetic operations.

  8. def appendInts(op: Ints): Ints

    Functionally appends the operand Ints.

    Functionally appends the operand Ints. Aliased by the ++ operator.

  9. def apply(index: Int): Int
    Definition Classes
    IntsArrayLike
  10. val arrayUnsafe: Array[Int]
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def collect[B, BB <: ArrImut[B]](pf: PartialFunction[Int, B])(implicit ev: ArrTBuilder[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
  13. def collectList[B](pf: PartialFunction[Int, 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
  14. def contains[A1 >: Int](elem: A1): Boolean
    Definition Classes
    ArrayLike
  15. def cycleGet(index: Int): Int

    Applies an index to this ArrayLike collection which cycles back to element 0, when it reaches the end of the collection.

    Applies an index to this ArrayLike collection which cycles back to element 0, when it reaches the end of the collection. Accepts even negative integers as an index value without throwing an exception.

    Definition Classes
    ArrayLike
    Annotations
    @inline()
  16. def eMap[B, ArrB <: ArrImut[B]](f: (Int) => EMon[B])(implicit ev: ArrTBuilder[B, ArrB]): EMon[ArrB]
    Definition Classes
    ArrayLike
  17. def eMapList[B](f: (Int) => EMon[B]): EMon[List[B]]
    Definition Classes
    ArrayLike
  18. def elemsLen: 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
    IntsArrayLikeBase
  19. final def elemsStr: String

    The element String allows the composition of toString for the whole collection.

    The element String allows the composition of toString for the whole collection. The syntax of the output will be reworked.

    Definition Classes
    ArrImut
  20. def empty: Boolean
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  21. def existsCount(f: (Int) => 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
  22. def fElemStr: (Int) => String
    Definition Classes
    IntsArrImut
  23. def fHeadElse[B](noHead: => B)(ifHead: (Int) => B): B
    Definition Classes
    ArrayLike
  24. def fMax[B](defaultValue: B)(f: (Int) => B)(implicit cmp: Ordering[B]): B

    Gives the maximum value of type B, produced by applying the function from A to B on each element of this collection, or the default value if the collection is empty.

    Gives the maximum value of type B, produced by applying the function from A to B on each element of this collection, or the default value if the collection is empty.

    Definition Classes
    ArrayLike
  25. def fMin[B](defaultValue: B)(f: (Int) => B)(implicit cmp: Ordering[B]): B

    Gives the minimum value of type B, produced by applying the function from A to B on each element of this collection, or the default value if the collection is empty.

    Gives the minimum value of type B, produced by applying the function from A to B on each element of this collection, or the default value if the collection is empty.

    Definition Classes
    ArrayLike
  26. def filter[ArrA <: ArrImut[Int]](f: (Int) => Boolean)(implicit ev: ArrTBuilder[Int, ArrA]): ArrA
    Definition Classes
    ArrayLike
  27. def filterNot[ArrA <: ArrImut[Int]](f: (Int) => Boolean)(implicit ev: ArrTBuilder[Int, ArrA]): ArrA
    Definition Classes
    ArrayLike
  28. def filterToList(f: (Int) => Boolean): List[Int]
    Definition Classes
    ArrayLike
  29. def find(f: (Int) => Boolean): Option[Int]
    Definition Classes
    ArrImut
  30. def flatMap[ArrB <: ArrImut[_]](f: (Int) => ArrB)(implicit ev: ArrTFlatBuilder[ArrB]): ArrB

    Specialised flatMap to an immutable Arr.

    Specialised flatMap to an immutable Arr.

    Definition Classes
    ArrayLike
  31. def foldHeadTail[B](initial: B)(fHead: (B, Int) => B)(fTail: (B, Int) => B): B
    Definition Classes
    ArrayLike
  32. def foldLeft[B](initial: B)(f: (B, Int) => B): B
    Definition Classes
    ArrayLike
  33. def foldTailLeft[B](initial: B)(f: (B, Int) => B): B
    Definition Classes
    ArrayLike
  34. def forAll(p: (Int) => Boolean): Boolean
    Definition Classes
    ArrayLike
  35. def foreach[U](f: (Int) => U): Unit

    Performs the effectual function on each member of the collection.

    Performs the effectual function on each member of the collection.

    Definition Classes
    ArrayLikeArrayLikeBase
  36. def foreachInit[U](f: (Int) => U): Unit
    Definition Classes
    ArrayLike
  37. def foreachReverse[U](f: (Int) => 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
  38. def foreachTail[U](f: (Int) => U): Unit
    Definition Classes
    ArrayLike
  39. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  40. def head: Int
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  41. def headToStringElse(ifEmptyString: String): String
    Definition Classes
    ArrayLike
  42. def iFlatMap[ArrB <: ArrImut[_]](iInit: Int = 0)(f: (Int, Int) => ArrB)(implicit build: ArrTFlatBuilder[ArrB]): ArrB

    Specialised flatMap with index to an immutable Arr.

    Specialised flatMap with index to an immutable Arr.

    Definition Classes
    ArrayLike
  43. def iFlatMap[ArrB <: ArrImut[_]](f: (Int, Int) => ArrB)(implicit build: ArrTFlatBuilder[ArrB]): ArrB

    Specialised flatMap with index to an immutable Arr.

    Specialised flatMap with index to an immutable Arr.

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

    foreach with index.

    foreach with index.

    Definition Classes
    ArrayLikeArrayLikeBase
  46. def iForeach[U](f: (Int, Int) => U): Unit

    foreach with index starting at 0.

    foreach with index starting at 0.

    Definition Classes
    ArrayLikeArrayLikeBase
  47. def iForeachReverse[U](f: (Int, Int) => U): Unit
    Definition Classes
    ArrayLike
  48. def iMap[B, ArrB <: ArrImut[B]](f: (Int, Int) => B)(implicit ev: ArrTBuilder[B, ArrB]): ArrB

    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
  49. def ifEmpty[B](vEmpty: => B, vNonEmpty: => B): B
    Definition Classes
    ArrayLike
  50. def indexOf(elem: Int): Int
    Definition Classes
    ArrayLike
  51. def indexWhere(f: (Int) => 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
  52. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  53. def iterFlatMap[B, ArrB <: ArrImut[B]](f: (Int) => Iterable[B])(implicit ev: ArrTBuilder[B, ArrB]): ArrB

    FlatMaps over a function from A to any Iterable.

    FlatMaps over a function from A to any Iterable.

    Definition Classes
    ArrayLike
  54. def last: Int
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  55. 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
  56. def map[B, ArrB <: ArrImut[B]](f: (Int) => B)(implicit ev: ArrTBuilder[B, ArrB]): ArrB

    Specialised map to an immutable ArrBase of B.

    Specialised map to an immutable ArrBase of B.

    Definition Classes
    ArrayLike
  57. def map2To1[B, ArrB <: ArrImut[B]](f: (Int, Int) => B)(implicit ev: ArrTBuilder[B, ArrB]): ArrB

    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
  58. def mapCollectGoods[B, BB <: ArrImut[B]](f: (Int) => EMon[B])(implicit ev: ArrTBuilder[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
  59. def mapList[B <: AnyRef](f: (Int) => B): List[B]

    maps ValueProduct collection to List

    maps ValueProduct collection to List

    Definition Classes
    ArrayLike
  60. def mapWithAcc[B, ArrB <: ArrImut[B], C](initC: C)(f: (Int, C) => (B, C))(implicit ev: ArrTBuilder[B, ArrB]): ArrB
    Definition Classes
    ArrayLike
  61. def max[B >: Int](implicit ord: Ordering[B]): Int
    Definition Classes
    ArrayLike
  62. def min[B >: Int](implicit ord: Ordering[B]): Int
    Definition Classes
    ArrayLike
  63. def mkString(seperator: String): String

    Not sure about this method.

    Not sure about this method.

    Definition Classes
    ArrayLike
  64. def modifyWhere(pred: (Int) => Boolean, fNewValue: (Int) => Int): 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
    ArrImut
  65. def nonEmpty: Boolean
    Definition Classes
    ArrayLike
    Annotations
    @inline()
  66. def prepend(op: Int): Ints

    Functionally prepends the operand Int.

    Functionally prepends the operand Int. This alphanumeric method is not aliased with an operator to avoid confusion with numeric operators.

  67. def removeFirst(f: (Int) => Boolean): ThisT
    Definition Classes
    ArrImut
  68. def replace(oldValue: Int, newValue: Int): 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
    ArrImut
  69. def replaceWhere(pred: (Int) => Boolean, newValue: Int): 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
    ArrImut
  70. def returnThis: ThisT

    Method for keeping the typer happy when returning this as an instance of ThisT.

    Method for keeping the typer happy when returning this as an instance of ThisT.

    Definition Classes
    ArrayLike
    Annotations
    @inline()
  71. def sum(implicit ev: Sumable[Int]): Int
    Definition Classes
    ArrayLike
  72. def sumBy(f: (Int) => Int): Int
    Definition Classes
    ArrayLike
  73. def toList: List[Int]
    Definition Classes
    ArrayLike
  74. final def toString(): String
    Definition Classes
    ArrImut → Any
  75. def toStrsCommaFold(fToStr: (Int) => String): String
    Definition Classes
    ArrayLike
  76. def toStrsCommaNoSpaceFold(fToStr: (Int) => String): String
    Definition Classes
    ArrayLike
  77. def toStrsCommaParenth(fToStr: (Int) => String): String
    Definition Classes
    ArrayLike
  78. def toStrsFold(seperator: String, f: (Int) => String): String
    Definition Classes
    ArrayLike
  79. def toStrsSemiFold(fToStr: (Int) => String): String
    Definition Classes
    ArrayLike
  80. def toStrsSemiParenth(fToStr: (Int) => String): String
    Definition Classes
    ArrayLike
  81. def typeStr: String

    String specifying the type of this object.

    String specifying the type of this object.

    Definition Classes
    IntsArrImut
  82. def unsafeArrayCopy(operand: Array[Int], offset: Int, copyLength: Int): Unit
  83. def unsafeNew(length: Int): Ints

    Copy's the backing ArrayInt to a new Array[Int].

    Copy's the backing ArrayInt to a new Array[Int]. End users should rarely have to use this method.

    Definition Classes
    IntsArrImut
  84. def unsafeSetElem(i: Int, value: Int): Unit

    Sets / mutates an element in the Arr.

    Sets / mutates an element in the Arr. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

    Definition Classes
    IntsArrImut
  85. def unsafeSetElemSeq(index: Int, elems: Iterable[Int]): Unit
    Definition Classes
    ArrImut
  86. def unsafeSetElems(index: Int, elems: Int*): Unit

    Sets / mutates elements in the Arr.

    Sets / mutates elements in the Arr. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

    Definition Classes
    ArrImut
  87. def unsafeSetHead(value: Int): Unit

    Sets / mutates the head element in the Arr.

    Sets / mutates the head element in the Arr. This method should rarely be needed by end users, but is used by initialisation and factory methods.

    Definition Classes
    ArrImut
  88. def unsafeSetLast(value: Int): Unit

    Sets / mutates the last element in the Arr.

    Sets / mutates the last element in the Arr. This method should rarely be needed by end users, but is used by initialisation and factory methods.

    Definition Classes
    ArrImut
  89. def zipMap[B, C, ArrC <: ArrImut[C]](operator: ArrayLike[B])(f: (Int, B) => C)(implicit ev: ArrTBuilder[C, ArrC]): ArrC

    Takes a second collection as a parameter and zips the elements of this collection and the operand collection and applies the specialised map function from type A and type B to type C.

    Takes a second collection as a parameter and zips the elements of this collection and the operand collection and applies the specialised map function from type A and type B to type C.

    Definition Classes
    ArrayLike
  90. def zipMap2[B, C, D, ArrD <: ArrImut[D]](operator1: ArrayLike[B], operator2: ArrayLike[C])(f: (Int, B, C) => D)(implicit ev: ArrTBuilder[D, ArrD]): ArrD

    Takes a second collection and third collections as parameters and zips the elements of this collection and the operand collections and applies the specialised map function from type A and type B and type C to type D.

    Takes a second collection and third collections as parameters and zips the elements of this collection and the operand collections and applies the specialised map function from type A and type B and type C to type D.

    Definition Classes
    ArrayLike

Inherited from ArrImut[Int]

Inherited from ArrayLike[Int]

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

Inherited from AnyVal

Inherited from Any

Ungrouped