Immutable::Map::Trie::Values(K, V)
Inherits Struct < Value < Object
Constructors
new(entries : Array(Entry(K, V)))
Sourcenew
SourceInstance methods
[](key : K) : V
Source[]=(key : K, value : V)
Source[]?(key : K) : V | Nil
Sourcedelete(key : K) : V
Sourcedup
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.
each
Sourcefetch(key : K, &)
Sourcefetch(key : K, default)
Sourcefind_entry(key : K) : Entry(K, V) | Nil
Sourcehas_key?(key : K) : Bool
Sourcesize
Source