Vault

object Vault
Companion:
class
class Object
trait Matchable
class Any
Vault.type

Value members

Concrete methods

The Empty Vault

The Empty Vault

Deprecated methods

@deprecated("Use v.adjust(k, f)", "3.1.0")
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.

Deprecated
@deprecated("Use v.delete(k)", "3.1.0")
def delete[A](k: Key[A], v: Vault): Vault

Delete a key from the vault

Delete a key from the vault

Deprecated
@deprecated("Use v.insert(k, a)", "3.1.0")
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.

Deprecated
@deprecated("Use v.isEmpty", "3.1.0")

Checks whether the given Vault is empty

Checks whether the given Vault is empty

Deprecated
@deprecated("Use v.lookup(k)", "3.1.0")
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

Deprecated
@deprecated("Use v2 ++ v2", "3.1.0")
def union(v1: Vault, v2: Vault): Vault

Merge Two Vaults. v2 is prioritized.

Merge Two Vaults. v2 is prioritized.

Deprecated