Lookup

trait Lookup[A, +B] extends Collection[B]

Lookup Collection

In Lookup collection 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

Source
__.scala
trait Collection[B]
trait Able.Size
trait Able.~[B]
class java.lang.Object
trait scala.Matchable
class Any

Def

@scala.annotation.targetName("stream")
def ~: ~[B]

Value stream

Value stream

Returns a Stream of all values for this Lookup

Source
__.scala
def get(v: A): B

Element by key

Element by key

Returns element associated with the given key

Note. This operation will fail, if value is not found. Thus, use safer get_? in most cases

Source
__.scala
@scala.annotation.targetName("get_Stream")
def get_~(keys: ~[A]): ~[B]

Multi key lookup

Multi key lookup

Returns a stream of values for given stream of keys.

Note: There may be less values, than keys. Keys with no assosiated values are ignored.

Source
__.scala
@scala.annotation.targetName("get_Opt")
def get_?(key: A): Opt[B]

Optional element by key

Optional element by key

Optionally returns element associated with the given key

Source
__.scala
override def isEmpty: Boolean

Empty check

Empty check

Returns true if instance is empty.

Definition Classes
Inherited from
Size
Source
Size.scala
@scala.annotation.targetName("key_Stream")
def key_~: ~[A]

Key stream

Key stream

Returns a Stream of all keys for this Lookup

Source
__.scala
@scala.annotation.targetName("pair_Stream")
def pair_~: ~[(A, B)]

Key/value pair stream

Key/value pair stream

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

Source
__.scala
override def size: Int

Element count

Element count

Retuns element count

Definition Classes
Inherited from
Collection
Source
__.scala

Extension

@scala.annotation.targetName("map_View")
def map_^[A, B](f: B => C): Lookup[A, C]
Source
__.scala
@scala.annotation.targetName("toMap_View")
def toMap_^[A, B]: scala.collection.Map[A, B]
Source
__.scala
@scala.annotation.targetName("toPartialFunction_View")
def toPartialFunction_^[A, B]: scala.PartialFunction[A, B]
Source
__.scala