News for hackers. Stuff that matters.
Re:The Comprehensive Guide to Elixir's List Comprehension (2... by AlchemistCamp on Thursday June 29, 2023 @07:05AM (#36518863)
I tend to replace most instances of Enum.map with filters. Filters are also easier to read than quite a few instances of Enum.filter or Enum.into, too!

Outside of things like generating a game board, or some other well structured n-dimensional struct, I generally avoid nesting them, though. I’ll use Enum on the outer function(s) and filter for the inner one.

There are no comments on this comment yet.