struct Immutable::Map::Trie::Values(K, V)
- Immutable::Map::Trie::Values(K, V)
- Struct
- Value
- Object
Defined in:
immutable/map/trie.crConstructors
Instance Method Summary
- #[](key : K) : V
- #[]=(key : K, value : V)
- #[]?(key : K) : V | Nil
- #delete(key : K) : V
-
#dup
Returns a shallow copy of this object.
- #each
- #fetch(key : K, &)
- #fetch(key : K, default)
- #find_entry(key : K) : Entry(K, V) | Nil
- #has_key?(key : K) : Bool
- #size
Constructor Detail
Instance Method Detail
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.