Copyright © 2011 Erlware, LLC.
Behaviours: ec_dictionary.
Authors: Eric Merritt (ericbmerritt@gmail.com).
dictionary(K, V) = {ec_assoc_list, [{ec_dictionary:key(K), ec_dictionary:value(V)}]}
add/3 | |
from_list/1 | |
get/2 | |
get/3 | |
has_key/2 | |
has_value/2 | |
keys/1 | |
new/0 | |
remove/2 | |
size/1 | |
to_list/1 |
add(Key::ec_dictionary:key(K), Value::ec_dictionary:value(V), Object::dictionary(K, V)) -> dictionary(K, V)
from_list(List::[{ec_dictionary:key(K), ec_dictionary:value(V)}]) -> dictionary(K, V)
get(Key::ec_dictionary:key(K), Object::dictionary(K, V)) -> ec_dictionary:value(V)
get(Key::ec_dictionary:key(K), Default::ec_dictionary:value(V), Object::dictionary(K, V)) -> ec_dictionary:value(V)
has_key(Key::ec_dictionary:key(K), Object::dictionary(K, _V)) -> boolean()
has_value(Value::ec_dictionary:value(V), Object::dictionary(_K, V)) -> boolean()
keys(X1::dictionary(K, _V)) -> [ec_dictionary:key(K)]
new() -> dictionary(_K, _V)
remove(Key::ec_dictionary:key(K), Object::dictionary(K, _V)) -> dictionary(K, _V)
size(Object::dictionary(_K, _V)) -> non_neg_integer()
to_list(X1::dictionary(K, V)) -> [{ec_dictionary:key(K), ec_dictionary:value(V)}]
Generated by EDoc, Feb 15 2022, 15:17:48.