Reversing A List
To efficiently work with and transform lists in Elixir, you will likely need utilize a list reversing function from time to time. Your best bet is to reach for the Erlang implementation which is available as part of the lists
module.
Here are a couple examples of how to use it:
Note: though I said "transform lists" above, what is actually going on is that a new version of the list representing my transformation is being created, per Elixir's functional nature.
Last updated