Master Enum (metaphors galore)

bigspaces

BigSpaces

Posted on September 30, 2022

Master Enum (metaphors galore)

This is a tool that is aiding my brain in the Elixir journey: metaphors.

I find much of the documentation out there is rich in details for the initiated, though it may be a challenge for those of us who read through them as one would read through Sanskrit.

As I learn new functions every day, my brain needs mental shelves where to place these new concepts, and metaphors are providing those mental shelves.

Mastering enum seems to be akin to mastering the light saber for a Jedi. My superhero mentor insists that, if I get Enum.map, Enum.reduce, and Enum.filter, I have a good foundation to move forward.

These are the metaphors that are helping me as a starting point to understanding those three functions.

Enum.map is akin to going through all the beads of a rosary.

Enum.filter is akin to looking for a specific book in the library.

Enum.reduce is akin to placing your shopping into the bag.

They do not represent a perfect description. We have the technical documentation for perfection. Alas, when I am learning, they do the work. When I need to decide which function to use, those visuals help me decide which function has the best shot.

Git add .
Git commit -m "Whatever gets the job done..."
Enter fullscreen mode Exit fullscreen mode

BigSpaces

💖 💪 🙅 🚩
bigspaces
BigSpaces

Posted on September 30, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Master Enum (metaphors galore)
elixir Master Enum (metaphors galore)

September 30, 2022