A.OrdMap.put
You're seeing just the function
put
, go back to A.OrdMap module for more information.
Specs
Puts the given value
under key
in ord_map
.
If the key
does exist, it overwrites the existing value without
changing its current location.
Examples
iex> ord_map = A.OrdMap.new(a: "Ant", b: "Bat", c: "Cat")
iex> A.OrdMap.put(ord_map, :b, "Buffalo")
ord(%{a: "Ant", b: "Buffalo", c: "Cat"})
iex> A.OrdMap.put(ord_map, :d, "Dinosaur")
ord(%{a: "Ant", b: "Bat", c: "Cat", d: "Dinosaur"})