Module ttdict
ttdict() = empty | {empty, any(), any(), empty} | {any(), any(), any(), any()} | {empty, any(), any(), empty, any(), any(), empty} | {any(), any(), any(), any(), any(), any(), any()}
append(Key, Value, Dict1) -> Dict2
append_list(Key, Values, Dict1) -> Dict2
erase(Key, Dict1) -> Dict2
fetch(Key, Dict) -> Value
- Key = term()
- Dict = ttdict()
- Value = term()
filter(Pred, Dict1) -> Dict2
- Pred = fun((Key::term(), Value::term()) -> boolean())
- Dict1 = ttdict()
- Dict2 = ttdict()
find(Key, Dict) -> {ok, Value} | error
- Key = term()
- Dict = ttdict()
- Value = term()
first(Dict) -> error | {ok, {Key1, Value}}
- Key1 = term()
- Value = term()
- Dict = ttdict()
fold(Fun, Acc0, Dict) -> Acc1
- Fun = fun((Key, Value, AccIn) -> AccOut)
- Key = term()
- Value = term()
- Acc0 = term()
- Acc1 = term()
- AccIn = term()
- AccOut = term()
- Dict = ttdict()
foreach(Fun, Dict) -> ok
- Fun = fun((Key::term(), Value::term()) -> term())
- Dict = ttdict()
from_list(List) -> Dict
- List = [{Key::term(), Value::term()}]
- Dict = ttdict()
is_key(Key, Dict) -> boolean()
last(Dict) -> error | {ok, {Key1, Value}}
- Key1 = term()
- Value = term()
- Dict = ttdict()
map(Fun, Dict1) -> Dict2
- Fun = fun((Key::term(), Value1::term()) -> Value2::term())
- Dict1 = ttdict()
- Dict2 = ttdict()
mapfold(Fun, Acc0, Dict1) -> {Dict2, Acc1}
- Fun = fun((Key, Value1, AccIn) -> {Value2, AccOut})
- Acc0 = term()
- Acc1 = term()
- Key = term()
- Value1 = term()
- Value2 = term()
- AccIn = term()
- AccOut = term()
- Dict1 = ttdict()
- Dict2 = ttdict()
merge(Fun, Dict1, Dict2) -> Dict3
- Fun = fun((Key::term(), Value1::term(), Value2::term()) -> Value::term())
- Dict1 = ttdict()
- Dict2 = ttdict()
- Dict3 = ttdict()
next(Key, Dict) -> error | {ok, {Key1, Value}}
- Key = term()
- Key1 = term()
- Value = term()
- Dict = ttdict()
prev(Key, Dict) -> error | {ok, {Key1, Value}}
- Key = term()
- Key1 = term()
- Value = term()
- Dict = ttdict()
size(Dict) -> non_neg_integer()
store(Key, Value, Dict1) -> Dict2
to_list(Dict) -> List
- Dict = ttdict()
- List = [{Key::term(), Value::term()}]
update(Key, Fun, Dict1) -> Dict2
- Key = term()
- Fun = fun((Value1::term()) -> Value2::term())
- Dict1 = ttdict()
- Dict2 = ttdict()
update(Key, Fun, Initial, Dict1) -> Dict2
- Key = term
- Initial = term()
- Fun = fun((Value::term()) -> Value2::term())
- Dict1 = ttdict()
- Dict2 = ttdict()
update_counter(Key, Increment, Dict1) -> Dict2
update_val(Key, Value, Dict1) -> Dict2
Generated by EDoc