Packages

final class ConstArray[+T] extends Product

An efficient immutable array implementation which is used in the AST. Semantics are generally the same as for Scala collections but for performance reasons it does not implement any standard collection traits.

Self Type
ConstArray[T]
Source
ConstArray.scala
Linear Supertypes
Product, Equals, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConstArray
  2. Product
  3. Equals
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from ConstArray[T] toany2stringadd[ConstArray[T]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ++(o: Option[T]): ConstArray[T]
  5. def ++[U >: T](u: ConstArray[U]): ConstArray[U]
  6. def +:(v: T): ConstArray[T]
  7. def ->[B](y: B): (ConstArray[T], B)
    Implicit
    This member is added by an implicit conversion from ConstArray[T] toArrowAssoc[ConstArray[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  8. def :+(v: T): ConstArray[T]
  9. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def apply(i: Int): T
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def canEqual(that: Any): Boolean
    Definition Classes
    ConstArray → Equals
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  14. def collect[R](f: PartialFunction[T, R]): ConstArray[R]
  15. def drop(n: Int): ConstArray[T]
  16. def endoMap(f: (T) => T): ConstArray[T]

    Perform a mapping operation that does not change the type.

    Perform a mapping operation that does not change the type. If all elements remain unchanged (as determined by object identity), return this ConstArray instead of building a new one.

  17. def ensuring(cond: (ConstArray[T]) => Boolean, msg: => Any): ConstArray[T]
    Implicit
    This member is added by an implicit conversion from ConstArray[T] toEnsuring[ConstArray[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: (ConstArray[T]) => Boolean): ConstArray[T]
    Implicit
    This member is added by an implicit conversion from ConstArray[T] toEnsuring[ConstArray[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean, msg: => Any): ConstArray[T]
    Implicit
    This member is added by an implicit conversion from ConstArray[T] toEnsuring[ConstArray[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. def ensuring(cond: Boolean): ConstArray[T]
    Implicit
    This member is added by an implicit conversion from ConstArray[T] toEnsuring[ConstArray[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. def equals(o: Any): Boolean
    Definition Classes
    ConstArray → Equals → AnyRef → Any
  23. def exists(f: (T) => Boolean): Boolean
  24. def filter(p: (T) => Boolean): ConstArray[T]
  25. def find(f: (T) => Boolean): Option[T]
  26. def flatMap[R](f: (T) => ConstArray[R]): ConstArray[R]
  27. def flatten[R](implicit ev: <:<[T, ConstArray[R]]): ConstArray[R]
  28. def foldLeft[B](z: B)(op: (B, T) => B): B
  29. def foldRight[B](z: B)(op: (T, B) => B): B
  30. def forall(f: (T) => Boolean): Boolean
  31. def foreach[R](f: (T) => R): Unit
  32. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  33. def hashCode(): Int
    Definition Classes
    ConstArray → AnyRef → Any
  34. def head: T
  35. def headOption: Option[T]
  36. def indexWhere(f: (T) => Boolean): Int
  37. def init: ConstArray[T]
  38. def isEmpty: Boolean
  39. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  40. def iterator: Iterator[T]
  41. def last: T
  42. def lastOption: Option[T]
  43. val length: Int
  44. def lengthCompare(n: Int): Int
  45. def map[R](f: (T) => R): ConstArray[R]
  46. def mkString(start: String, sep: String, end: String): String
  47. def mkString(sep: String): String
  48. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  49. def nonEmpty: Boolean
  50. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  51. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  52. def productArity: Int
    Definition Classes
    ConstArray → Product
  53. def productElement(i: Int): Any
    Definition Classes
    ConstArray → Product
  54. def productElementName(n: Int): String
    Definition Classes
    Product
  55. def productElementNames: Iterator[String]
    Definition Classes
    Product
  56. def productIterator: Iterator[Any]
    Definition Classes
    Product
  57. def productPrefix: String
    Definition Classes
    ConstArray → Product
  58. def slice(from: Int, until: Int): ConstArray[T]
  59. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  60. def tail: ConstArray[T]
  61. def take(n: Int): ConstArray[T]
  62. def toArray[R >: T](implicit arg0: ClassTag[R]): Array[R]
  63. def toMap[R, U](implicit ev: <:<[T, (R, U)]): HashMap[R, U]
  64. def toSeq: IndexedSeq[T]
  65. def toSet: HashSet[T]
  66. def toString(): String
    Definition Classes
    ConstArray → AnyRef → Any
  67. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  68. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  69. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  70. def withFilter(p: (T) => Boolean): ConstArrayOp[T]
  71. def zip[U](u: ConstArray[U]): ConstArrayOp[(T, U)]
  72. def zipWithIndex: ConstArrayOp[(T, Int)]

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

  2. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from ConstArray[T] toStringFormat[ConstArray[T]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  3. def [B](y: B): (ConstArray[T], B)
    Implicit
    This member is added by an implicit conversion from ConstArray[T] toArrowAssoc[ConstArray[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromConstArray[T] to any2stringadd[ConstArray[T]]

Inherited by implicit conversion StringFormat fromConstArray[T] to StringFormat[ConstArray[T]]

Inherited by implicit conversion Ensuring fromConstArray[T] to Ensuring[ConstArray[T]]

Inherited by implicit conversion ArrowAssoc fromConstArray[T] to ArrowAssoc[ConstArray[T]]

Ungrouped