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.
key() :: any()
t() :: list() | map()
value() :: any()
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.
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.
empty(t()) :: t()This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
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.
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.
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.
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.
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.
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.
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.
keys(t()) :: [key()]This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
values(t()) :: [value()]This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.
© 2012 Plataformatec
Licensed under the Apache License, Version 2.0.
https://hexdocs.pm/elixir/1.7.3/Dict.html