We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
In this article, we'll cover some common uses of for loops and comprehensions in Python, how to analyze an existing loop, and how to transform them into their equivalent expressions in Elixir, using the functions in the Enum module and comprehensions.
We'll focus on:
- Transforming a collection of data through a function (map)
- Filtering values into or out of a collection (filter)
- Producing a single aggregate value or structure, such as an average (reduce or fold)
We'll finish off with a basic example that combines all three!
continue reading on blog.puretype.ai
⚠️ This post links to an external website. ⚠️
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.