Search⌘ K
AI Features

How to Choose Between Maps, Structs, and Keyword Lists

Explore how to differentiate and choose between maps, structs, and keyword lists in Elixir. Understand when to use each dictionary type based on pattern matching, key duplicates, order requirements, and fixed data fields to effectively manage data structures.

We'll cover the following...

A dictionary is a data type that associates keys with values. In this short chapter, we’ll dive into structs, a special kind of map with a fixed structure, nested data structures, and how to alter fields in a map ...