HashDict
WARNING: this module is deprecated.
Use the Map
module instead.
Summary
Types
- t()
Functions
- delete(dict, key)
- drop(dict, keys)
- equal?(dict1, dict2)
- fetch(hash_dict, key)
- fetch!(dict, key)
- get(dict, key, default \\ nil)
- get_and_update(dict, key, fun)
- get_lazy(dict, key, fun)
- has_key?(dict, key)
- keys(dict)
- merge(dict1, dict2, fun \\ fn _k, _v1, v2 -> v2 end)
- new()
-
Creates a new empty dict
- pop(dict, key, default \\ nil)
- pop_lazy(dict, key, fun)
- put(hash_dict, key, value)
- put_new(dict, key, value)
- put_new_lazy(dict, key, fun)
- size(hash_dict)
- split(dict, keys)
- take(dict, keys)
- to_list(dict)
- update(dict, key, initial, fun)
- update!(dict, key, fun)
- values(dict)
Types
t
Functions
get_and_update(dict, key, fun)
new() :: Dict.t
Creates a new empty dict.