Dict module
The
gleam/dict
standard library module defines Gleam's Dict
type and functions
for working with it. A dict is a collection of keys and values which other
languages may call a hashmap or table.
new
and
from_list
can be used to create new dicts.
insert
and
delete
are used to add and remove items from a dict.
Like lists, dicts are immutable. Inserting or deleting an item from a dict will return a new dict with the item added or removed.
Dicts are unordered! If it appears that the items in a dict are in a certain order, it is incidental and should not be relied upon. Any ordering may change without warning in future versions or on different runtimes.