Keyword Lists and Maps
Learn how to use Elixir's keyword lists and maps to manage key-value data. Understand their syntax and explore methods to access, add, and work with these structures through practical examples.
We'll cover the following...
We'll cover the following...
Keyword lists
In many functional programming languages, it’s common to use a list of 2-item tuples as the representation of a key-value data structure. In Elixir, when we have a list of tuples and the first item of the tuple (known as the key) is an atom, we call it a keyword list. ...