Map
Maps are the “go to” key-value data structure in Elixir.
Maps can be created with the %{}
syntax, and key-value pairs can be expressed as key => value
:
When keys are atoms the key-value pairs can be expressed as key: value
:
Maps are the “go to” key-value data structure in Elixir.
Maps can be created with the %{}
syntax, and key-value pairs can be expressed as key => value
:
When keys are atoms the key-value pairs can be expressed as key: value
: