HashDict — Elixir v1.16.3

Search documentation of Elixir

# View Source HashDict (Elixir v1.16.3)

This module is deprecated. Use Map instead.

Tuple-based HashDict implementation.

This module is deprecated. Use the `Map` module instead.

# Summary

## Types

t()

## Functions

delete(dict, key) deprecated
drop(dict, keys) deprecated
equal?(dict1, dict2) deprecated
fetch(hash_dict, key) deprecated
fetch!(dict, key) deprecated
get(dict, key, default \\ nil) deprecated
get_and_update(dict, key, fun) deprecated
get_lazy(dict, key, fun) deprecated
has_key?(dict, key) deprecated
keys(dict) deprecated
merge(dict1, dict2, fun \\ fn _k, _v1, v2 -> v2 end) deprecated
new() deprecated

Creates a new empty dict.

pop(dict, key, default \\ nil) deprecated
pop_lazy(dict, key, fun) deprecated
put(hash_dict, key, value) deprecated
put_new(dict, key, value) deprecated
put_new_lazy(dict, key, fun) deprecated
size(hash_dict) deprecated
split(dict, keys) deprecated
take(dict, keys) deprecated
to_list(dict) deprecated
update(dict, key, default, fun) deprecated
update!(dict, key, fun) deprecated
values(dict) deprecated

# Types

Link to this opaque

# t()

View Source

    @opaque t()

# Functions

Link to this function

# delete(dict, key)

View Source
This function is deprecated. Use maps and the Map module instead.
Link to this function

# drop(dict, keys)

View Source
This function is deprecated. Use maps and the Map module instead.
Link to this function

# equal?(dict1, dict2)

View Source
This function is deprecated. Use maps and the Map module instead.
Link to this function

# fetch(hash_dict, key)

View Source
This function is deprecated. Use maps and the Map module instead.
Link to this function

# fetch!(dict, key)

View Source
This function is deprecated. Use maps and the Map module instead.
Link to this function

# get(dict, key, default \\ nil)

View Source
This function is deprecated. Use maps and the Map module instead.
Link to this function

# get_and_update(dict, key, fun)

View Source
This function is deprecated. Use maps and the Map module instead.
Link to this function

# get_lazy(dict, key, fun)

View Source
This function is deprecated. Use maps and the Map module instead.
Link to this function

# has_key?(dict, key)

View Source
This function is deprecated. Use maps and the Map module instead.
Link to this function

# keys(dict)

View Source
This function is deprecated. Use maps and the Map module instead.
Link to this function

# merge(dict1, dict2, fun \\ fn _k, _v1, v2 -> v2 end)

View Source
This function is deprecated. Use maps and the Map module instead.
Link to this function

# new()

View Source
This function is deprecated. Use maps and the Map module instead.

    @spec new() :: Dict.t()

Creates a new empty dict.

Link to this function

# pop(dict, key, default \\ nil)

View Source
This function is deprecated. Use maps and the Map module instead.
Link to this function

# pop_lazy(dict, key, fun)

View Source
This function is deprecated. Use maps and the Map module instead.
Link to this function

# put(hash_dict, key, value)

View Source
This function is deprecated. Use maps and the Map module instead.
Link to this function

# put_new(dict, key, value)

View Source
This function is deprecated. Use maps and the Map module instead.
Link to this function

# put_new_lazy(dict, key, fun)

View Source
This function is deprecated. Use maps and the Map module instead.
Link to this function

# size(hash_dict)

View Source
This function is deprecated. Use maps and the Map module instead.
Link to this function

# split(dict, keys)

View Source
This function is deprecated. Use maps and the Map module instead.
Link to this function

# take(dict, keys)

View Source
This function is deprecated. Use maps and the Map module instead.
Link to this function

# to_list(dict)

View Source
This function is deprecated. Use maps and the Map module instead.
Link to this function

# update(dict, key, default, fun)

View Source
This function is deprecated. Use maps and the Map module instead.
Link to this function

# update!(dict, key, fun)

View Source
This function is deprecated. Use maps and the Map module instead.
Link to this function

# values(dict)

View Source
This function is deprecated. Use maps and the Map module instead.