trait _Trait[A] extends View[A] with Idx[A]
- Alphabetic
- Immutable
- Idx
- ZZ.Array.Like.View
- Util.Able.Void
- scala.Any
- Hide All
- Show All
- Public
- All
Type
Method
-
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
-
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
abstract
def
base: Array[A]
- Attributes
- protected
- Definition Classes
- View
-
def
contains(v: A): Boolean
Inclusion check
Inclusion check
Returns true if specified value is contained within
- Definition Classes
- _Trait → View
-
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
-
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
-
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
-
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
-
def
equals(arg0: Any): Boolean
- Definition Classes
- Any
-
def
hashCode(): Int
- Definition Classes
- Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isVoid: Boolean
Void check
Void check
Returns
true
if this instance is void- Definition Classes
- View → Void
-
abstract
def
make: (Array[A]) ⇒ scalqa.Idx.Immutable._Trait[A]
- Attributes
- protected
- Definition Classes
- View
-
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
-
def
toArray(implicit t: ClassTag[A]): Array[A]
Copy to Array
Copy to Array
Copies all elements to a new Array
- Definition Classes
- View
-
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:
- Booleans for Boolean elements
- Bytes for Byte elements
- Chars for Char elements
- Shorts for Short elements
- Ints for Int elements
- Longs for Long elements
- Floats for Float elements
- Doubles for Double elements
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
-
def
toString(): String
Description
Description
Provides description of size and array type
- Definition Classes
- View → Any
Operator
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
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
-
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 specifiedposition
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
-
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
-
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
-
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
-
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
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
Immutable Trait