for
comprehensions are one of the most powerful features in Elixir. It supports both enumerable and bitstring generators, filters through boolean expressions and pattern matching, collectibles with :into
and folding with :reduce
.
One of the features are automatic filtering by patterns in generators: