News for hackers. Stuff that matters.
Re:The Comprehensive Guide to Elixir's List Comprehension (2... by square_usual on Wednesday June 28, 2023 @08:37PM (#36514808)
I agree with you: I prefer map and reduce unless I specifically need a comprehension because of multiple input collections. IMO for with many conditions etc. becomes too hard to understand, and you have to keep too many things in mind vs. a filter |> map. Regardless, I don't mind its presence, and it definitely has come in handy at times. Yet another reason to enjoy Elixir's approach to language design!

There are no comments on this comment yet.