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

Lookup Collection

In Lookup every element is stored with a 'key' and can be accessed (looked up) with this key

It is a greatly simplified equivalent of scala.Map

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

Method

  1. def all: ~[B]

    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_Trait
  2. abstract def allPairs: ~[(A, B)]

    All key/value pairs

    All key/value pairs

    Returns a Stream of all key/value pairs for this Lookup

    Definition Classes
    _Trait
  3. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  4. def equals(arg0: Any): Boolean
    Definition Classes
    Any
  5. abstract def getOpt(key: A): Opt[B]

    Element by key

    Element by key

    Optionally returns element associated with the given key

    Definition Classes
    _Trait
  6. def hashCode(): Int
    Definition Classes
    Any
  7. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  8. 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
  9. 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