首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

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()

代码语言:javascript
复制
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()

代码语言:javascript
复制
new() :: Dict.t

创建一个新的空数据集。

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)

扫码关注腾讯云开发者

领取腾讯云代金券