HashDict
HashDict
警告:此模块已弃用。
改用Map
模块。
摘要
类型
t()
功能
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()
创建一个新的空数据集
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)
类型
t()
t
功能
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()
new() :: Dict.t
创建一个新的空数据集。