class Immutable::Map::Transient(K, V)
- Immutable::Map::Transient(K, V)
- Immutable::Map(K, V)
- Reference
- Object
Defined in:
immutable/map.crConstructors
- .new(hash : Hash(K, V) = {} of K => V)
- .new(hash : Hash(K, V) = {} of K => V, &block : K -> V)
- .new(e : Enumerable(::Tuple(L, W))) forall L, W
Instance Method Summary
- #delete(key : K)
- #merge(hash : Hash(K, V))
- #merge(map : Immutable::Map(K, V))
- #merge(hash : Hash(L, W)) forall L, W
- #merge(map : Immutable::Map(L, W)) forall L, W
- #persist!
- #set(key : K, value : V)
Instance methods inherited from class Immutable::Map(K, V)
==(other : Map)
==,
[](key : K)
[],
[]?(key : K)
[]?,
delete(key : K)
delete,
eacheach(&block) each, each_key
each_key(&block : K -> ) each_key, each_value
each_value(&block : V -> ) each_value, fetch(key : K, &block : K -> _)
fetch(key : K, default)
fetch(key : K) fetch, hash hash, inspect(io : IO) inspect, keys keys, merge(map : Immutable::Map(L, W)) forall L, W
merge(hash : Hash(L, W)) forall L, W
merge(map : Immutable::Map(K, V))
merge(hash : Hash(K, V)) merge, set(key : K, value : V) set, size size, to_json(json : JSON::Builder) to_json, to_s(io : IO) to_s, transient(&block) transient, values values
Constructor methods inherited from class Immutable::Map(K, V)
new(hash : Hash(K, V) = {} of K => V)new(hash : Hash(K, V) = {} of K => V, &block : K -> V)
new(e : Enumerable(::Tuple(_, _))) new