struct

Immutable::Map::Trie::Values(K, V)

Inherits Struct < Value < Object

Constructors

new(entries : Array(Entry(K, V)))
Source

Instance methods

[](key : K) : V
Source
[]=(key : K, value : V)
Source
[]?(key : K) : V | Nil
Source
delete(key : K) : V
Source
dup

Returns a shallow copy of this object.

Because Value is a value type, this method returns self, which already involves a shallow copy of this object because value types are passed by value.

Source
each
Source
fetch(key : K, &)
Source
fetch(key : K, default)
Source
find_entry(key : K) : Entry(K, V) | Nil
Source
has_key?(key : K) : Bool
Source
size
Source