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 StringFormat
  2. by Ensuring
  3. 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 ++(o: Option[T]): ConstArray[T]
  4. def ++[U >: T](u: ConstArray[U]): ConstArray[U]
  5. def +:(v: T): ConstArray[T]
  6. 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()
  7. def :+(v: T): ConstArray[T]
  8. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def apply(i: Int): T
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def canEqual(that: Any): Boolean
    Definition Classes
    ConstArray → Equals
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  13. def collect[R](f: PartialFunction[T, R]): ConstArray[R]
  14. def drop(n: Int): ConstArray[T]
  15. 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.

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