Elixir v1.5.0-rc.2 Dict View Source

WARNING: this module is deprecated.

If you need a general dictionary, use the Map module. If you need to manipulate keyword lists, use Keyword.

To convert maps into keywords and vice-versa, use the new function in the respective modules.

Link to this section Summary

Link to this section Types

Link to this section Functions

Link to this function delete(dict, key) View Source
delete(t(), key()) :: t()
Link to this function drop(dict, keys) View Source
drop(t(), [key()]) :: t()
Link to this function empty(dict) View Source
empty(t()) :: t()
Link to this function equal?(dict1, dict2) View Source
equal?(t(), t()) :: boolean()
Link to this function fetch(dict, key) View Source
fetch(t(), key()) :: value()
Link to this function fetch!(dict, key) View Source
fetch!(t(), key()) :: value() | no_return()
Link to this function get(dict, key, default \\ nil) View Source
get(t(), key(), value()) :: value()
Link to this function get_and_update(dict, key, fun) View Source
get_and_update(t(), key(), (value() -> {value(), value()})) :: {value(), t()}
Link to this function get_lazy(dict, key, fun) View Source
get_lazy(t(), key(), (() -> value())) :: value()
Link to this function has_key?(dict, key) View Source
has_key?(t(), key()) :: boolean()
Link to this function keys(dict) View Source
keys(t()) :: [key()]
Link to this function merge(dict1, dict2) View Source
merge(t(), t()) :: t()
Link to this function merge(dict1, dict2, fun) View Source
merge(t(), t(), (key(), value(), value() -> value())) :: t()
Link to this function pop(dict, key, default \\ nil) View Source
pop(t(), key(), value()) :: {value(), t()}
Link to this function pop_lazy(dict, key, fun) View Source
pop_lazy(t(), key(), (() -> value())) :: {value(), t()}
Link to this function put(dict, key, val) View Source
put(t(), key(), value()) :: t()
Link to this function put_new(dict, key, val) View Source
put_new(t(), key(), value()) :: t()
Link to this function put_new_lazy(dict, key, fun) View Source
put_new_lazy(t(), key(), (() -> value())) :: t()
Link to this function split(dict, keys) View Source
split(t(), [key()]) :: {t(), t()}
Link to this function take(dict, keys) View Source
take(t(), [key()]) :: t()
Link to this function to_list(dict) View Source
to_list(t()) :: list()
Link to this function update(dict, key, initial, fun) View Source
update(t(), key(), value(), (value() -> value())) :: t()
Link to this function update!(dict, key, fun) View Source
update!(t(), key(), (value() -> value())) :: t()
Link to this function values(dict) View Source
values(t()) :: [value()]