trait _Trait[+A] extends Any

Collection

"Collection" is the root of Scalqa Collections Framework

It is a rough equivalent of Java Collection and Scala Traversable.

The notable difference is how the size is treated. A good Any.Collection implementation must have a readily available size, where as in Java and Scala size can be calculated each time.

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

Method

  1. abstract def all: ~[A]

    Returns a Stream of all elements

    Returns a Stream of all elements

    Unless specifically defined, the order must be assumed as random.

    val coll = Any.Collection.make(1,3,5,7)
    coll.all.lp
    
    // Output
    ~(1, 3, 5, 7)
    Definition Classes
    _Trait
  2. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  3. def equals(arg0: Any): Boolean
    Definition Classes
    Any
  4. def hashCode(): Int
    Definition Classes
    Any
  5. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  6. 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
  7. 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