t
scalqa

Idx.Immutable

trait _Trait[A] extends View[A] with Idx[A]

Immutable Trait

Ordering
  1. Alphabetic
Inherited
  1. Immutable
  2. Idx
  3. ZZ.Array.Like.View
  4. Util.Able.Void
  5. scala.Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type

  1. abstract type scalqa.Idx.Immutable._Trait[A] <: Immutable[A]
    Attributes
    protected
    Definition Classes
    _Trait → View

Method

  1. def all: ~[A]

    Returns a Stream of all elements

    Returns a Stream of all elements

    The element order is same as in the Idx.

    val idx: Idx[Char] = ('a' to 'g').all.to[Idx]
    
    println(idx.all) // Prints: ~(a, b, c, d, e, f, g)
    Definition Classes
    _Trait
  2. abstract def apply(idx: Int): A

    Returns element at position

    Returns element at position

    val idx : Idx[Char] = ('a' to 'z').all.to[Idx]
    
     println(idx(1)) // Prints: b
    
     println(idx(3)) // Prints: d
    Definition Classes
    _Trait
  3. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  4. abstract def base: Array[A]
    Attributes
    protected
    Definition Classes
    View
  5. def contains(v: A): Boolean

    Inclusion check

    Inclusion check

    Returns true if specified value is contained within

    Definition Classes
    _Trait → View
  6. def copy(start: Int = 0, endExclusive: Opt.Int = \/): scalqa.Idx.Immutable._Trait[A]

    Copy range

    Copy range

    Copies elements within the range specified

    val ii : Idx.Immutable[Char] = ('A' to 'Z').all.to[Idx.Immutable]
    
    ii.copy(3, 10).all      // Stream: ~(D, E, F, G, H, I, J, K)
    Definition Classes
    View
  7. def copyLast(number: Int): scalqa.Idx.Immutable._Trait[A]

    Copy end

    Copy end

    Copies specified number of elements at the end

    val ii : Idx.Immutable[Char] = ('A' to 'Z').all.to[Idx.Immutable]
    
    ii.copyLast(5).all       // Stream: ~(V, W, X, Y, Z)
    Definition Classes
    View
  8. def copyRemove(start: Int, endExclusive: Opt.Int = \/): scalqa.Idx.Immutable._Trait[A]

    Copy without range

    Copy without range

    Copies elements outside the range specified

    val ii : Idx.Immutable[Char] = ('A' to 'Z').all.to[Idx.Immutable]
    
    ii.copyRemove(3, 21).all  // Stream: ~(A, B, C, V, W, X, Y, Z)
    Definition Classes
    View
  9. def copyShort(cnt: Int): scalqa.Idx.Immutable._Trait[A]

    Copy without end

    Copy without end

    Copies from the beginning, missing specified number of elements at the end

    val ii : Idx.Immutable[Char] = ('A' to 'Z').all.to[Idx.Immutable]
    
    ii.copyShort(20).all    // Stream: ~(A, B, C, D, E, F)
    Definition Classes
    View
  10. def equals(arg0: Any): Boolean
    Definition Classes
    Any
  11. def hashCode(): Int
    Definition Classes
    Any
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def isVoid: Boolean

    Void check

    Void check

    Returns true if this instance is void

    Definition Classes
    View → Void
  14. abstract def make: (Array[A]) ⇒ scalqa.Idx.Immutable._Trait[A]
    Attributes
    protected
    Definition Classes
    View
  15. abstract def size: Int

    Returns element count

    Returns element count

    val idx: Idx[Char] = ('a' to 'z').all.to[Idx]
    
    println(idx.size) // Prints: 26
    Definition Classes
    _Trait
  16. def toArray(implicit t: ClassTag[A]): Array[A]

    Copy to Array

    Copy to Array

    Copies all elements to a new Array

    Definition Classes
    View
  17. final def toRaw[TRGT <: Immutable[A]](implicit c: RawConverter[A, TRGT]): TRGT

    To raw immutable

    To raw immutable

    Converts this Idx.Immutable or Refs to raw immutable

    Note. This method is inherited by raw immutables themselves (like Chars,Ints, etc.), where it does not make sense to use

    Supported targets are:

    val r: Refs[Int] = Refs.*(1, 2, 3, 4)
    
    val ints: Ints = r.toRaw[Ints]
    
    // ------------------------------------
    
    val ii: Idx.Immutable[Char] = ('a' to 'z').all.to[Idx.Immutable]
    
    val chars: Chars = ii.toRaw[Chars]
    Definition Classes
    _Trait
  18. def toString(): String

    Description

    Description

    Provides description of size and array type

    Definition Classes
    View → Any

Operator

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. def +(v: A): scalqa.Idx.Immutable._Trait[A]

    Plus

    Plus

    Creates a new instance with value added

    var ii: Idx.Immutable[Char] = Seq('a', 'b', 'c').all.to[Idx.Immutable]
    
    ii = ii + 'x' + 'y' + 'z'
    
    ii.all // Stream:  ~(a, b, c, x, y, z)
    Definition Classes
    View
  4. def +@(i: Int, v: A): scalqa.Idx.Immutable._Trait[A]

    Plus at position

    Plus at position

    Creates a new instance with specified value inserted at specified position

    var ii: Idx.Immutable[Char] = Seq('a', 'b', 'c').all.to[Idx.Immutable]
    
    ii = ii +@ (0, 'X') +@ (0, 'Y') +@ (0, 'Z')
    
    ii.all    // Stream: ~(Z, Y, X, a, b, c)
    Definition Classes
    View
  5. def +~(v: ~[A]): scalqa.Idx.Immutable._Trait[A]

    Plus all

    Plus all

    Creates a new instance with added stream of values

    var ii: Idx.Immutable[Char] = Seq('a', 'b', 'c').all.to[Idx.Immutable]
    
    ii = ii +~ Seq('x', 'y', 'z').all
    
    ii.all   // Stream:  ~(a, b, c, x, y, z)
    Definition Classes
    View
  6. def +~@(i: Int, v: ~[A]): scalqa.Idx.Immutable._Trait[A]

    Plus stream at position

    Plus stream at position

    Creates a new instance with stream values added at specified position

    var ii: Idx.Immutable[Char] = Seq('a', 'b', 'c').all.to[Idx.Immutable]
    
    ii = ii +~@ (1, Seq('X', 'Y', 'Z'))
    
    ii.all   // Stream: ~(a, X, Y, Z, b, c)
    Definition Classes
    View
  7. def -(v: A): scalqa.Idx.Immutable._Trait[A]

    Subtract value

    Subtract value

    Creates a new instance with all values equal to the specified removed

    var ii: Idx.Immutable[Char] = Seq('a', 'b', 'b', 'c').all.to[Idx.Immutable]
    
    ii = ii - 'b'
    
    ii.all   // Stream: ~(a, c)
    Definition Classes
    View
  8. def -~(v: ~[A]): scalqa.Idx.Immutable._Trait[A]

    Subtract all values

    Subtract all values

    Creates a new instance with all values equal to the specified removed

    var ii: Idx.Immutable[Char] = ('a' to 'z').all.to[Idx.Immutable]
    
    ii = ii -~ ('d' to 'x')
    
    ii.all    // Stream: ~(a, b, c, y, z)
    Definition Classes
    View
  9. final def ==(arg0: Any): Boolean
    Definition Classes
    Any