For ... into: %{}, do:

Is there any overhead of elixir’s comprehensions compared with erlang’s then?

Like

  • Compile for that don’t do any filtering into Enum.map instead of Enum.reduce.
  • Compile for that discards result into Enum.each instead of Enum.reduce with nil as an accumulator.

from

erlang doesn’t seem to have such problems Erlang -- List Handling, does it?