April 2024
Beginner to intermediate
224 pages
5h 7m
English
You’ll perform two types of operations on your data. Iteration reads the contents of the data structure, so you can do something meaningful with it. Map (or reduce) transforms the contents of the data structure to modify it or to create something totally different.
Elixir has several options for iterating and mapping your data structures. We’re going to look at a few of the built-in options that Elixir gives for iteration and mapping. We’ll cover the Enum module and comprehensions.
The Enum[29] module is arguably the most useful module in the standard library. It does lots of things, but we’ll cover some of the most commonly used functions. It’s built on top of the Enumerable protocol, which lets us enumerate ...
Read now
Unlock full access