Vault

object Vault
Companion
class
class Object
trait Matchable
class Any

Value members

Methods

def empty: Vault
The Empty Vault
def lookup[A](k: Key[A], v: Vault): Option[A]
Lookup the value of a key in the vault
def insert[A](k: Key[A], a: A, v: Vault): Vault
Insert a value for a given key. Overwrites any previous value.
def isEmpty(v: Vault): Boolean
Checks whether the given Vault is empty
def delete[A](k: Key[A], v: Vault): Vault
Delete a key from the vault
def adjust[A](k: Key[A], f: A => A, v: Vault): Vault
Adjust the value for a given key if it's present in the vault.
def union(v1: Vault, v2: Vault): Vault
Merge Two Vaults. v2 is prioritized.