lookup method

Option<V> lookup(
  1. K key
)

Get the value at given key if present, otherwise return None.

Implementation

Option<V> lookup(K key) => Option.fromNullable(this[key]);