gossamer/map
Types
Values
pub fn delete(
from map: Map(key, value),
key key: key,
) -> Map(key, value)
Removes the entry for the given key. Mutates the map.
pub fn entries(
of map: Map(key, value),
) -> iterator.Iterator(#(key, value), Nil, Nil)
pub fn get(
from map: Map(key, value),
key key: key,
) -> Result(value, Nil)
Returns the value associated with the given key, or an error if not found.
pub fn keys(
of map: Map(key, value),
) -> iterator.Iterator(key, Nil, Nil)
pub fn set(
in map: Map(key, value),
key key: key,
value value: value,
) -> Map(key, value)
Sets the value for the given key. Mutates the map.
pub fn values(
of map: Map(key, value),
) -> iterator.Iterator(value, Nil, Nil)