trait _Trait[+A] extends Any.Collection[A]

Indexed Collection

In Indexed Collection elements can be accessed by positional index from 0 to size exclusive

It is a greatly simplified equivalent of java.util.List and scala.IndexedSeq

Ordering
  1. Alphabetic
Inherited
  1. Idx
  2. Any.Collection
  3. scala.Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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 index = Idx.*(1,3,5,7)
    index.all.lp
    // Output
    ~(1, 3, 5, 7)
    Definition Classes
    _Trait_Trait
  2. abstract def apply(idx: Int): A

    Returns element at position

    Returns element at position

    idx

    element position, must be in range (0 <>> size)

    val index = Idx.*(1,4,7,10)
    index(1).lp  // Prints: 4
    index(3).lp  // Prints: 10
    Definition Classes
    _Trait
  3. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  4. def equals(arg0: Any): Boolean
    Definition Classes
    Any
  5. def hashCode(): Int
    Definition Classes
    Any
  6. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  7. abstract def size: Int

    Number of elements

    Number of elements

    Readily available, not calculated element count

    Idx.*(1,3,5,7).size.lp  // Prints: 4
    Definition Classes
    _Trait
  8. def toString(): String
    Definition Classes
    Any

Operator

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any