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

Defined in:

immutable/map/trie.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(entries : Array(Entry(K, V))) #

[View source]
def self.new #

[View source]

Instance Method Detail

def [](key : K) : V #

[View source]
def []=(key : K, value : V) #

[View source]
def []?(key : K) : V | Nil #

[View source]
def delete(key : K) : V #

[View source]
def dup #
Description copied from struct Value

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.


[View source]
def each #

[View source]
def fetch(key : K, &) #

[View source]
def fetch(key : K, default) #

[View source]
def find_entry(key : K) : Entry(K, V) | Nil #

[View source]
def has_key?(key : K) : Bool #

[View source]
def size #

[View source]