Immutability Isn't Scary: Building Your First Elixir Data Structures

When I first heard that Elixir was &ldquo;immutable,&rdquo; I understood what this meant in theory. However, it took writing a bit of Elixir code to really understand what this meant. This section is focused on really getting at the heart of how to build with immutability at its core. How do you write a game where the player&rsquo;s money never changes? Where the inventory is frozen in time?…