- Move the Whole Family in One Car: Structs as ContainersHow Structs Keep Related Elixir State Moving TogetherUse Elixir structs as containers for fixed domain state. Learn how a tetromino struct keeps name, location, rotation, and color together while reducers update one field at a time.Elixir Functional Programming Structs Data Structures Reducers
- A Struct Is Just a Map With RulesHow Structs Give Elixir Maps a Fixed ShapeStructs are maps with rules: fixed fields, a hidden __struct__ key, and clearer boundaries around domain data. Learn when to choose a map and when to reach for a struct in Elixir.Elixir Functional Programming Structs Data Structures Protocols