Elixir v1.9.2 Dict View Source

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 section Functions

This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.

Specs

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.

Specs

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.

Specs

empty(t()) :: t()
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.

Specs

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.

Specs

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.

Specs

fetch!(t(), key()) :: value()
Link to this function

get(dict, key, default \\ nil)

View Source
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.

Specs

get(t(), key(), value()) :: value()
Link to this function

get_and_update(dict, key, fun)

View Source
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.

Specs

get_and_update(t(), key(), (value() -> {value(), value()})) :: {value(), t()}
Link to this function

get_lazy(dict, key, fun)

View Source
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.

Specs

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.

Specs

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.

Specs

keys(t()) :: [key()]
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.

Specs

merge(t(), t()) :: t()
Link to this function

merge(dict1, dict2, fun)

View Source
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.

Specs

merge(t(), t(), (key(), value(), value() -> value())) :: t()
Link to this function

pop(dict, key, default \\ nil)

View Source
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.

Specs

pop(t(), key(), value()) :: {value(), t()}
Link to this function

pop_lazy(dict, key, fun)

View Source
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.

Specs

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.

Specs

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.

Specs

put_new(t(), key(), value()) :: t()
Link to this function

put_new_lazy(dict, key, fun)

View Source
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.

Specs

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.

Specs

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.

Specs

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.

Specs

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.

Specs

to_list(t()) :: list()
Link to this function

update(dict, key, initial, fun)

View Source
This function is deprecated. Use the Map module for working with maps or the Keyword module for working with keyword lists.

Specs

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.

Specs

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.

Specs

values(t()) :: [value()]