If optimisation isn't the main goal, what's wrong with just:

coll |> Enum.map(&my_fun/1) |> Enum.reverse()

If you are doing it with a large enough collection that performance becomes an 
issue look at using Stream. Personally I would do both of these before 
considering the Enum.reduce form, although my intuition may be off on this one.

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/a4a046ed-3859-4488-a1d5-c5448619dcf8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to