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

Deprecated Value Members

  1. 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.

  2. 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