gleam/javascript/map
Types
The JavaScript Map type, a mutable collection of keys and values.
Most the time you should use the Dict type from gleam/dict in the Gleam
standard library. This type may still be useful for JavaScript interop.
For further information view the MDN documentation: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map
pub type Map(key, value)
Functions
pub fn set(a: Map(a, b), b: a, c: b) -> Map(a, b)
Insert a new key and value into the Map.
NOTE: This function will mutate the Map rather than immutably
updating it.