Map.put
You're seeing just the function
put
, go back to Map module for more information.
Specs
Puts the given value
under key
in map
.
Inlined by the compiler.
Examples
iex> Map.put(%{a: 1}, :b, 2)
%{a: 1, b: 2}
iex> Map.put(%{a: 1, b: 2}, :a, 3)
%{a: 3, b: 2}