elixir v1.7.0-rc.0 Dict

This module is deprecated. Use Map or Keyword modules instead.

Generic API for dictionaries.

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 type key()
key() :: any()
Link to this type t()
t() :: list() | map()
Link to this type value()
value() :: any()

Link to this section Functions

Link to this function delete(dict, key)
delete(t(), key()) :: t()
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
Link to this function drop(dict, keys)
drop(t(), [key()]) :: t()
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
Link to this function empty(dict)
empty(t()) :: t()
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
Link to this function equal?(dict1, dict2)
equal?(t(), t()) :: boolean()
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
Link to this function fetch!(dict, key)
fetch!(t(), key()) :: value() | no_return()
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
Link to this function fetch(dict, key)
fetch(t(), key()) :: value()
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
Link to this function get(dict, key, default \\ nil)
get(t(), key(), value()) :: value()
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
Link to this function get_and_update(dict, key, fun)
get_and_update(t(), key(), (value() -> {value(), value()})) ::
  {value(), t()}
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
Link to this function get_lazy(dict, key, fun)
get_lazy(t(), key(), (() -> value())) :: value()
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
Link to this function has_key?(dict, key)
has_key?(t(), key()) :: boolean()
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
Link to this function keys(dict)
keys(t()) :: [key()]
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
Link to this function merge(dict1, dict2)
merge(t(), t()) :: t()
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
Link to this function merge(dict1, dict2, fun)
merge(t(), t(), (key(), value(), value() -> value())) :: t()
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
Link to this function pop(dict, key, default \\ nil)
pop(t(), key(), value()) :: {value(), t()}
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
Link to this function pop_lazy(dict, key, fun)
pop_lazy(t(), key(), (() -> value())) :: {value(), t()}
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
Link to this function put(dict, key, val)
put(t(), key(), value()) :: t()
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
Link to this function put_new(dict, key, val)
put_new(t(), key(), value()) :: t()
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
Link to this function put_new_lazy(dict, key, fun)
put_new_lazy(t(), key(), (() -> value())) :: t()
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
Link to this function size(dict)
size(t()) :: non_neg_integer()
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
Link to this function split(dict, keys)
split(t(), [key()]) :: {t(), t()}
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
Link to this function take(dict, keys)
take(t(), [key()]) :: t()
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
Link to this function to_list(dict)
to_list(t()) :: list()
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
Link to this function update!(dict, key, fun)
update!(t(), key(), (value() -> value())) :: t()
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
Link to this function update(dict, key, initial, fun)
update(t(), key(), value(), (value() -> value())) :: t()
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
Link to this function values(dict)
values(t()) :: [value()]
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.