Vault

object Vault
Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

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.

Adjust the value for a given key if it's present in the vault.

def delete[A](k: Key[A], v: Vault): Vault

Delete a key from the vault

Delete a key from the vault

def empty: Vault

The Empty Vault

The Empty Vault

def insert[A](k: Key[A], a: A, v: Vault): Vault

Insert a value for a given key. Overwrites any previous value.

Insert a value for a given key. Overwrites any previous value.

def isEmpty(v: Vault): Boolean

Checks whether the given Vault is empty

Checks whether the given Vault is empty

def lookup[A](k: Key[A], v: Vault): Option[A]

Lookup the value of a key in the vault

Lookup the value of a key in the vault

def union(v1: Vault, v2: Vault): Vault

Merge Two Vaults. v2 is prioritized.

Merge Two Vaults. v2 is prioritized.